How to Track Downloads in Google Analytics - Complete Guide

submitted by Madamxtra on 10/02/19 1

Do you have a whitepaper, ebook, PDF, or other files offered as downloads on your website? (Read full post - goo.gl/rJgMwx) Sign up for our FREE Google Analytics Mini-Course - goo.gl/gg5J1Z 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. It can also help you determine which kind of content upgrades your audience really wants. Google Analytics does not automatically track this activity. But... You can set Google Analytics up to track downloads automatically. Depending on your website's setup and your resources, there are a number options for tracking file downloads. Let's look at how this tracking works in Google Analytics. Then we'll walk through the options you have available for tracking downloads. We'll start with the easiest solutions, and end with the most difficult. Why doesn't Google Analytics automatically track downloads? Google Analytics loves to track pageviews. Why? Because web pages execute JavaScript when they load in your browser. The base Google Analytics code is built in JavaScript, so it can track anything that executes JavaScript. But what about web-based activity that doesn't execute JavaScript? PDFs and other types of downloadable files don't trigger JavaScript. So the standard Google Analytics tracking code does not record file downloads. The same applies to user activity on a web page. If the user's action doesn't trigger your code, Google Analytics won't track it. If you want to track events that don't execute browser-based code, you have to do some extra work. You have to tell Google Analytics what you want to track, and how to track it. Using event tracking and virtual page views to track downloads There a two ways you can tell Google to to track downloads on your website. You can use event tracking, or you can create what's known as a virtual pageview. Event Tracking There are a couple different ways to set up event tracking. 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. Event tracking is critical to understand because it's a fundamental part of Google analytics. Event tracking is how you tell Google Analytics to record user behavior that doesn't automatically trigger your tracking code. Usually, events are actions on the pages of your website. Common examples of events include video views, page scrolling, or file downloads. Event code looks like this: 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. Interaction Events 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 track bounce rate more precisely. Non-interaction events don't affect bounce rate at all. Automated download tracking Adding event tracking code to one file isn't overly complicated. But if you don't want to add code to your files manually, there are automated alternatives. 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. Tracking downloads using Google Tag Manager My favorite solution for tacking file downloads, hands down, is... Google Tag Manager(GTM). I love using GTM to track downloads because it's easy to set up. 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. You can configure your trigger using the event tracking templates in GTM. 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 .pdf or .xlxs, etc. this trigger will fire. And that action will record a download event in Google analytics. Here's an example of data in Google Analytics from tracking .png file downloads using GTM. Tracking downloads using GTM is a very straightforward process. And it's the industry standard for measuring this type of event. But, if for some reason you can't use GTM, there are other options. My second favorite way to track downloads is using a Wordpress plugin. MonsterInsights I used MonsterInsights for years before GTM came along The MonsterInsights interface allows you to track file downloads automatically. And they give you the option to use events or virtual page views. This plugin also allows you to choose the type of file extension you want to track.

Leave a comment

Be the first to comment

Email
Message
×
Embed video on a website or blog
Width
px
Height
px
×
Join Huzzaz
Start collecting all your favorite videos
×
Log in
Join Huzzaz

facebook login
×
Retrieve username and password
Name
Enter your email address to retrieve your username and password
(Check your spam folder if you don't find it in your inbox)

×