Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

PDF file tracking in AppMeasurement

Avatar

Community Advisor

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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.

View solution in original post

7 Replies

Avatar

Employee Advisor

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)"

Avatar

Community Advisor

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.

Avatar

Employee Advisor

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

Avatar

Community Advisor

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.

1719172_pastedImage_2.png

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

Avatar

Community Advisor

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

Avatar

Employee Advisor

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?

Avatar

Correct answer by
Community Advisor

@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.