How to best track clicks on pdfs | Community
Skip to main content
October 16, 2015
Solved

How to best track clicks on pdfs

  • October 16, 2015
  • 2 replies
  • 4084 views

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.
Best answer by Gigazelle

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

Gigazelle
Adobe Employee
GigazelleAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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.

Rahsing
Level 9
October 16, 2015

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