Mobile app version of vmapp.org
Login or Join
BetL925

: Is tracking pageviews on a PDF possible with UTM tags? I have a client which has a large amount of PDFs. I know that these do not have a tracking code on them, and have assumed we could

@BetL925

Posted in: #Pdf #Tracking #UtmParameters

I have a client which has a large amount of PDFs. I know that these do not have a tracking code on them, and have assumed we could not track pageviews and visitors landing on these pages. However, I then read this Moz article which suggests that you can by adding a campaign tag? Is this true?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL925

2 Comments

Sorted by latest first Latest Oldest Best

 

@Turnbaugh106

You can add scripts to PDF:


You can invoke JavaScript code using actions associated with bookmarks, links, >and pages. The Set Document Actions command lets you create document-level >JavaScript actions that apply to the entire document. For example, selecting >Document Did Save runs the JavaScript after a document is saved.

helpx.adobe.com/acrobat/using/applying-actions-scripts-pdfs.html

10% popularity Vote Up Vote Down


 

@Hamaas447

I wouldn't use campaign tracking for this (campaign tracking is for use on external links for attribution, not internal links).

What you want is Event Tracking.

It's pretty straight-forward, especially if you use GTM.

In a nutshell, you're going to use JavaScript to send GA Events that occur onclick

I recommend avoiding doing this with inline code because it's error-prone and instead set up a script that will send an event when any (internal?) link ending in .pdf is clicked.

You probably need to update the syntax shown in this article to the Universal (it uses the Async syntax) but this will give you a good idea about it.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme