Skip to main content
Oct 16, 2015 2:26 AM UTC
Solved

How to best track clicks on pdfs

Hello All,

I'm trying to capture click-through from email links to pdfs. Currently using campaign tracking, but campaign report not showing usage.

 

file.pdf?origin=afn_wk

 

The downloads report shows aggregated numbers of pdf downloads, but I need to know click origin.

 

Thank you All!

 

SW

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Gigazelle
GigazelleAccepted solution
Adobe Employee
Oct 16, 2015 2:26 AM UTC

Hi Solange,

The reason why you're not seeing the campaign variable defined is because pdf files can't really send image requests. On standard web pages, appmeasurement libraries are loaded, which in turn defines the logic to capture that query string parameter and send it to Adobe's servers. If you're wanting to define the campaign variable when link clicks to a PDF file, you'll want to do it on the page prior to opening the PDF.

If you're using a legacy implementation, use an s.tl() call. The link type would be lnk_d, and be sure to set s.linkTrackVars to contain campaign.

If you're using DTM, use a event-based rule to listen for any links to .pdf files. Then in actions, you can set the campaign variable to what you'd like.

2 replies

Rahsing
Level 9
Oct 16, 2015 2:26 AM UTC

Hi Solange,

Could you have a look at the documentation here to see if it solves your query?

Let me know either way.

Regards

Rahul

Translate
Gigazelle
Adobe Employee
GigazelleAdobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:26 AM UTC

Hi Solange,

The reason why you're not seeing the campaign variable defined is because pdf files can't really send image requests. On standard web pages, appmeasurement libraries are loaded, which in turn defines the logic to capture that query string parameter and send it to Adobe's servers. If you're wanting to define the campaign variable when link clicks to a PDF file, you'll want to do it on the page prior to opening the PDF.

If you're using a legacy implementation, use an s.tl() call. The link type would be lnk_d, and be sure to set s.linkTrackVars to contain campaign.

If you're using DTM, use a event-based rule to listen for any links to .pdf files. Then in actions, you can set the campaign variable to what you'd like.

Translate