Adobe Launch for DAM | Community
Skip to main content
April 11, 2024
Solved

Adobe Launch for DAM

  • April 11, 2024
  • 3 replies
  • 3196 views

Hello! 

 

How to add Adobe Launch script for DAM?

Example, 

Adobe Launch script: "//assets.adobedtm.com/launch-ABC123.min.js"

AEM DAM path: https://www.test.com/content/dam/report.pdf 

 

The Adobe Launch script can be added on HTML pages easily using the basepage template, but the DAM does not have any template, how to add scripts to the DAM? Is there any service available in OSGi or can anything be custom developed? 

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by himanshu

Based on some of the comments i believe what you want is to track PDF views and interactions. As you have already learned, adobe analytics (or any other analytics tool) only work on channels (Web Pages/Mobile Apps etc.) where you can embed Tag Management script. (Adobe Tags or other TMS you use).

 

The only OOTB offering i can think of is the PDF viewer core component. https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/wcm-components/pdf-viewer

 

What it requires is that you don't expose the PDF URLs but a page URL which hosts (embeds) the PDF. this way you can do much more than just page views tracking. (what page people scrolled to, what did they search within the PDF etc.)

 

If PDF viewer is not an option, there is a complex customization you'll have to do which would be too much to describe here as it has dependencies, assumptions, limitations which can't be clarified without a discovery engagement.

 

As i always say, if you can describe your 'functional' use-case requirements , you'll get much better 'technical' solutions.

 

HTH.

3 replies

Harwinder-singh
Community Advisor
Community Advisor
April 11, 2024

@berus The Adobe launch script is loaded during a page load.

The DAM asset/asset-URL is something that you will most likely add to some AEM page.

Once that is done, you can track any event happening on this asset link (link click, download, hover etc) using Launch script.

In that sense, you don't need to have this additionally tracked with any other script.

If there is a specific / unique use-case/problem statement that you are trying to solve, please share and we can try to help.

BerusAuthor
April 11, 2024

@harwinder-singh The use case is to add Adobe Analytics for PDFs only, PDFs only live in a couple of folders in the DAM. This way the additional parameters in the URL (UTMs, Gclids etc) can be captured in Adobe Analytics as an eVar. 

In my use case, PDFs will not be used on AEM pages, it will be a direct link from many campaigns, ex: https://www.test.com/content/dam/report.pdf 

 

So, how can I add Adobe Launch script to the DAM which will load Adobe Analytics? The DAM does not have any HTML, so I cannot embed the launch script. 

Harwinder-singh
Community Advisor
Community Advisor
April 11, 2024

@berus Understood !

A very similar use case has been discussed in this post - https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/tracking-direct-downloads-in-email-campaigns/m-p/228021

Hope this helps.

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
April 12, 2024

@berus Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community

Esteban Bustamante
BerusAuthor
April 12, 2024

@estebanbustamante The suggestions work for assets that live on a page, which is different from my use case. I am still looking for a solution. 

himanshuAdobe EmployeeAccepted solution
Adobe Employee
April 14, 2024

Based on some of the comments i believe what you want is to track PDF views and interactions. As you have already learned, adobe analytics (or any other analytics tool) only work on channels (Web Pages/Mobile Apps etc.) where you can embed Tag Management script. (Adobe Tags or other TMS you use).

 

The only OOTB offering i can think of is the PDF viewer core component. https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/wcm-components/pdf-viewer

 

What it requires is that you don't expose the PDF URLs but a page URL which hosts (embeds) the PDF. this way you can do much more than just page views tracking. (what page people scrolled to, what did they search within the PDF etc.)

 

If PDF viewer is not an option, there is a complex customization you'll have to do which would be too much to describe here as it has dependencies, assumptions, limitations which can't be clarified without a discovery engagement.

 

As i always say, if you can describe your 'functional' use-case requirements , you'll get much better 'technical' solutions.

 

HTH.

BerusAuthor
April 14, 2024

Oh well, I didn't know Analytics tools are limited to just web pages. Thanks for the info! I'll build a custom solution.