PDF file tracking in AppMeasurement | Community
Skip to main content
Gokul_Agiwal
Community Advisor
Community Advisor
March 25, 2019
Solved

PDF file tracking in AppMeasurement

  • March 25, 2019
  • 7 replies
  • 5572 views

Hi,

We have a requirement of PDF file download tracking and click / link tracking.   Currently we have latest AppMeasurement version 2.12 code is in place.

To track downloads and clicks do I need to used any custom solution ? if yes, how?

I came across this article Automatic Tracking of Exit Links and File Downloads but not sure if I set below variables is that works ? Or Do I need any custom plugin which tracks all activities of PDF files.

  1. s.trackDownloadLinks=true

  2. s.trackExternalLinks=true

  3. s.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,doc,pdf,xls"

Anyone can help ?

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 Asheesh_Pandey

@gokula If you using DTM?

Go to Adobe Analytics Tool > Click on Gear icon next to an installed Adobe Analytics tool from the Overview tab > Within Adobe Analytics tool  > Go to Link Tracking > Enable "Track Download Links" > Enable "Track Outbound Links" > Disable "Keep URL Parameters"

Let me know if that works.

7 replies

Adobe Employee
March 25, 2019

Hi gokula​,

You can use configuration variables like s.trackDownloadLinks and s.linkDownloadFileTypes and that will allow automatic tracking of download links with the extension specified above (in s.linkDownloadFileTypes).

Alternatively, you can have manual tracking through a piece of code using s.tl() function, something like onclick="s.tl(this, "d", myLink)"

Gokul_Agiwal
Community Advisor
Community Advisor
March 25, 2019

Thank you for quick response ishans9314858

For manual tracking, do I need to use any external plugin ? Somewhere I read about downloadLinkHandler plugin but I am not able to get in documentation.

If I used configuration variables described above where I can able to see the data report?

If you can provide any example that helps really.

Adobe Employee
March 25, 2019

No gokula​,

No plug-in is required for manual tracking. You can just implement it using the JS code and s.tl() function.

Experience Cloud Help

Gokul_Agiwal
Community Advisor
Community Advisor
March 26, 2019

Hello ishans9314858

I can see the pdf tracking count but another thing I noticed in analytics report which add some query string at the end of the link showing multiple records.  For reference attaching below screenshot. If you see below after .pdf extension few parameters getting added.

So just wanted to know how the query string added here in report ?

Do I need to set s.linkLeaveQueryString  here ? Default value is False but still I am able to see OR any other configuration var

Thanks

PratheepArunRaj
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
March 26, 2019

Dear Gokula,

Weird. If you didn't set s.linkLeaveQueryString to 'true' it should not capture the query string parameters, however can you set the parameter to 'false' and see the result?

Sounds illogical, but testing can give some sort of understanding rather than assuming.

Thank You!

Arun

Thank You, Pratheep Arun Raj B (Arun) | Xerago | Terryn Winter Analytics
Gigazelle
Adobe Employee
Adobe Employee
March 29, 2019

It also could be a custom variable - if it's a prop or eVar, you'll want to strip the query string yourself.

Were you able to get everything figured out?

Asheesh_Pandey
Community Advisor
Asheesh_PandeyCommunity AdvisorAccepted solution
Community Advisor
March 29, 2019

@gokula If you using DTM?

Go to Adobe Analytics Tool > Click on Gear icon next to an installed Adobe Analytics tool from the Overview tab > Within Adobe Analytics tool  > Go to Link Tracking > Enable "Track Download Links" > Enable "Track Outbound Links" > Disable "Keep URL Parameters"

Let me know if that works.