Pairing Google Tag Manager with Google Analytics allows you to Event Action report will show you the exact URLs of the downloaded PDFs. Clicks on links to downloadable files (e.g. PDF, AVI, WMV) can be measured as When you set up a virtual pageview to measure clicks on a link, Analytics. 4 days ago By default, Google Analytics doesn't support file downloads tracking. PDFs on external domains (such as site S3) will be seen by the.
|Language:||English, Japanese, Dutch|
|ePub File Size:||22.60 MB|
|PDF File Size:||9.62 MB|
|Distribution:||Free* [*Registration Required]|
Do you need to track downloads, like PDFs, Ebook, or whitepapers on your website? Google Analytics does not track downloads automatically. This doesn't change the way the PDF document is displayed or downloaded by your users. Then in Google Analytics go to “Content”. Be sure to read up on how to track PDFs in Google Analytics. through data which shows what content they engaged with and for how long.
Click to view.
How to Track PDF Views in Google Analytics
This creates a link statement that links to a PDF. Replace "xyz. The onClick attribute references Google's pageTracker function.
That function logs an entry in your Analytics account whenever someone clicks the link to view the PDF. Save the document and view it in a browser. Wait 24 to 48 hours and then visit your Google Analytics account page. View your Top Content report to verify that it contains a record of your page click and the name of the PDF you clicked.
After majoring in physics, Kevin Lee began writing professionally in when, as a software developer, he also created technical articles for the Johnson Space Center. Today this urban Texas cowboy continues to crank out high-quality software as well as non-technical articles covering a multitude of diverse topics ranging from gaming to current affairs.
Skip to main content.
There is something wrong here, especially if you are a nit-picker! I can hear you asking: Those other pages also have titles in reports, while PDFs don't! Can we somehow fix that? Well, today is your lucky day and you can get extra tips for the regular price!
Google Tag Manager knows how to fix that and help us, so let's make it work. We should start by creating one variable that returns only the portion of the URL after the domain name. Save that variable. We should replace the existing 'page' value with the variable we just created: Our Pageviews will no longer contain domain names and will be consistent with other website Pageviews!
Tracking PDF downloads as pageviews using Google Tag Manager V2
But what about the Document Title? Well, if you know SEO or know basic principles of good web writing , your PDF document link will probably look like this: Google Tag Manager will get that text via built-in variable called 'Click Text' that we first need to enable under 'Variables — Clicks' section.
Therefore, your tag configuration should at the end look like the example below:. As easy as one-two-three, right? Just one more thing before we finish!
But we sincerely hope you will soon figure out how to solve this problem using your own CMS.
Feel free to comment on this solution or to send even better examples, I would be glad to analyze or comment them. And if you find this solution useful, let me know that too, so that I can prepare more posts like this!
For all of you who made it to the end of this post, I have an even better solution! You're welcome ;.
First name. Last name. Email address. Phone number. Subscribe to our newsletter. Currently the oldest but hardly the most serious member of the team. Likes to play with gadgets, numbers and applications and loves music, travelling and spending time with his family.
May 22nd, With the MonsterInsights plugin, you can easily enable file downloads tracking in Google Analytics without having to touch a single line of code. A few benefits of file downloads tracking are: You can discover how popular your downloadable resources are.
You can determine which you should offer more of — and which one is a waste of your time. You can save your time and money by only producing the downloads your audience actually wants.
Are You a B2B Digital Marketing Nerd, Too?
The domain of the PDF link need to be the same as the domain the user is on or a subdomain. After the setup, file downloads tracking will be enabled automatically without any further configuration.
File downloads will be tracked as events. In Google Analytics, events tracking are used to measure user interactions with content like downloads, mobile ad clicks, video plays, etc.The flags can be associated with almost any element - buttons, time on a page, clicks - all you need to do is write the script. These tracking options might be starting to sound pretty advanced, but not every analytics solution is easy. Proceed to the next section if you already have a Google Analytics Account.
This code will trigger a download event in Google Analytics anytime someone clicks your file link. While each crumb tells a story, certain actions are more valuable because they signal an intent to eventually download. In contrast, micro-conversions usually just involve a click or two, so they often go untracked. Create Google Analytics Account 1.
Resources 1 Google Analytics: