GOOGLE ANALYTICS TRACK PDF
Be sure to read up on how to track PDFs in Google Analytics. offers that are downloadable to the visitor's computer in the form of a PDF file. Pairing Google Tag Manager with Google Analytics allows you to measure PDF views as a goal. 3 days ago By default, Google Analytics doesn't support file downloads tracking. The domain of the PDF link need to be the same as the domain the user.
|Language:||English, Spanish, French|
|ePub File Size:||24.65 MB|
|PDF File Size:||8.67 MB|
|Distribution:||Free* [*Regsitration Required]|
But you can setup Google Analytics to track your downloads. Do you have a whitepaper, ebook, PDF, or other files offered as downloads on. 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. This tactic was actually shown to me by Jeremiah Smith (my brother) over at SimpleTiger. The need for this came about when one of our.
Google Analytics tracks a lot of things, but not file downloads — at least, not out of the box. Depending on the nature of your site, it can be very useful to see which downloads were most popular. These event tags can be tracked in Google Analytics. However, this would require you to change every link on your website to include the required onclick attribute. This will require you to edit no code on the website at all.
Remember how we said at the beginning that we will use virtual Pageviews for PDF downloads and not events? OK, let's configure a new Tag that will send some virtual Pageview information to Google Analytics , but only when we click to PDF document anywhere within your website. Select its Track Type to be 'Pageview':.
Now expand 'More Settings' and 'Fields to Set'. Here we should put the PDF document file name to be shown together with all other Pageviews in your Google Analytics reports. Don't forget to fire this tag on PDF links only! Under 'Fire On' choose 'Click' and in the popup window put a checkmark by the rule we created before: Now your tag information should look like this:.
We have a Pageview tag that will send its information to Google Analytics only when a user clicks on a PDF document anywhere on our website!
Isn't that great? Plus, once you edit all website codes, someone will probably add another PDF in a day or two without telling you that, and you will have incomplete data!
By using these few simple steps you saved yourself a lot of time and effort! You can now create a new Tag Manager container version , publish it and your website will immediately start sending the proper PDF download information to Google Analytics. You will be able to see the full URL of that document under the 'Behaviour'' section, among other Pageviews.
But — wait! 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! 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.
Additional kinds of measurement
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. If you do, you probably want to track how often your visitors download this content. Tracking downloads on your website can help you figure what motivates your visitors.
Additional kinds of measurement - Analytics Help
It can also help you determine which kind of content upgrades your audience really wants. Google Analytics loves to track pageviews.
The same applies to user activity on a web page. You have to tell Google Analytics what you want to track, and how to track it. You can put some additional code on your website. Or you can use a plugin that puts the event tracking code in place for you. Usually, events are actions on the pages of your website. Common examples of events include video views, page scrolling, or file downloads. The event code sends a hit to Google with the category of the event.
It also tells Google the action that occurred and gives that action a label.
In the event code, you can also tell Google to assign a value to the event. An interaction event is a true or false type of command that exists within the event code. It tells Google that something did, or did not happen based on the user interacting with your webpage. Interaction events can be used to track bounce rate more precisely.
Automation is also a better solution if you need to track many downloadable files. There are several automated solutions for tracking downloads on your website. If you have GTM on your website, all you need to do to track your downloads is create an event trigger.
The trigger will record an event in Google Analytics every time a visitor clicks your download link. Within the trigger, you can use a regular expression to fire an event based on your file extensions. This expression tells the trigger to fire if any of these extensions are present in your URLs. So, if someone clicks a link on your site that contains.
And that action will record a download event in Google analytics.
How to Track and View File Downloads in Google Analytics
Tracking downloads using GTM is a very straightforward process. The MonsterInsights interface allows you to track file downloads automatically. And they give you the option to use events or virtual page views. One of my Analytics Course students, Marco, was faced with this problem. I remember you talking about that. The best way is to use Google Tag Manager. Alas, I am stuck with Google Analytics. So I need to set up Event Tracking I believe. Manually adding code sounds complicated, but there is a tool that can help you create event tracking links.
Raven Tools has a form that allows you to build event tracking code for your download links. Their form will create two sets of tracking code. You can choose to use either line of code in your download URL.