A recent development project required a solution to tracking, within Google Tag Manager, users viewing PDF documents - which called for some exploring. On the surface, Google Analytics doesn't support file downloads in the form of tracking. Now, with the help of Google Tag Manager, marketers. Learn how to track file downloads as Events in Google Universal Analytics (UA) by using Google Tag Manager (GTM) and Auto Event Tracking. Let's say we want to track file downloads of PDF files across the website.
|Language:||English, Spanish, Indonesian|
|Genre:||Business & Career|
|ePub File Size:||18.71 MB|
|PDF File Size:||14.69 MB|
|Distribution:||Free* [*Regsitration Required]|
Tracking a PDF download works a bit differently since a PDF file cannot Luckily , with the help of Google Tag Manager there is an easy way to. There are a few ways to track PDF Downloads in Google Tag Manager. However, for Click the link the below to see how a PDF is displayed the browser. TEST. Do you need to track downloads, like PDFs, Ebook, or whitepapers on your Automated download tracking; Google Tag Manager downloads.
Well you mask why we track PDF as pageview and not downloads or events, well the answer is simple, most of us nowadays are not really downloading pdf files on a website but rather we read the pdf file from the website using the native pdf reader that our browsers have.
See image below. Since we want to track pdf clicks only and not only clicks we must create some filters and rules to our triggers. As an overview please see image below:.
Then, Choose Event as Click this is because we want this trigger to fire if someone is clicking on your website.
On Configure Trigger select Link Click — of course because we only want to track link clicks and not all clicks.
To make it more straightforward I will provide the screenshot again of the output:. Now set the More Settings and Field to Set. We have explored several solutions to this problem, which are covered in this blog post along with their individual merits and limitations. Which of these is best for your requirements, however, might not be what was best for us, and in fact might be something else entirely.
However, it would present a problem if users tried to save or print using the browser menu. For security reasons, developers cannot override the browser's functionality when users use these features.
Another route we explored was pdf. However, its browser compatibility was unacceptable for our needs, and pdf.
Using this we were able to send all the data to Google Analytics with a small amount of server-side code, before returning the PDF file to the user. This meant that the PDF could be viewed natively by any device which accesses it, and we were able to track all we needed. While this was great, and seemed to solve all the issues, there was a problem.
This ruled out the Analytics Measurement Protocol. Finally, we created an interstitial page, which would always appear before accessing the PDF file.
Sometimes you want to track file downloads and show many times users download particular files like newsletters and application forms as these act as micro conversions or steps along the path to your major conversions and business goals. If you are an SEO Company looking to set this up for a client, this is particularly helpful because you can avoid having to wait for developers and get this setup fairly quickly.
In the past, you had to create Auto Event Variables to capture the information we need from the page as User Defined Variables. In this post we have shown you how to track file downloads in Google Analytics from anywhere on the site, and dynamically capture the name of the document using GTM V2 and Auto Event Tracking.
Hopefully you can see that if you have a large number of downloads, this is a quick way to setup tracking for them. Google Tag Managers Variables, previously called Macros, are a powerful feature that can capture all sorts of events and information from a page.
The new GTM V2 interface has made the most common ones built in and even easier to use. And at least once a week we heard from a potential client that had a bad experience with an SEO company and either asked us to clean up after the mess, or they were genuinely relieved when we showed them how straight forward and transparent we were in providing our services. In fact, many said we were the best SEO company that they had come across, even before they became a client.
Well, we are honest, transparent and we documented everything that we promised to do, ticking off what was done, on site and off site. And we delivered results that were measurable, quantifiable and tangible.