: 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
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?
More posts by @BetL925
2 Comments
Sorted by latest first Latest Oldest Best
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
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.