Does your website offer downloads’ like a whitepaper or an ebook or any other files?
If so, then you must be keen to track and know how many times site visitors download them and see the content.
This will help you figure out which downloads’ are liked by the visitors and why; and what kind of content interests them.
This is where Google Analytics can come to your assistance. Though it does not track them automatically it can be set-up to track them automatically.
WHY IT DOES NOT TRACK AUTOMATCIALLY?
HOW IT HELPS?
Google Analytics offers a number of options for tracking file downloads’. However, this will depend on your website’ set-up and resources.
Here is how you should track downloads’ in Google Analytics.
ADD CLICK-TRACKING CODE TO A FILE DOWNLOAD BUTTON
If your website features downloadable content, it does so vide a clickable button. This is coded to either of the following two buttons.
- ‘Kickstart the Download’ OR
- ‘Open a version of the download in a new window or tab’
You will get to
- Track the clicks of the button that triggers a download.
- Tell Google Analytics to record a piece of user behavior that does not trigger the tracking code that it tracks.
But for this, you need to set it up. All that needs to be done is add some script to the download button code.
- Within the HTML, locate the button on your website. That is, the button that prompts visitors to download content.
- ‘Download the PDF’ is that text that will appear on the button.
To track clicks of the above button in Google Analytics, you need to add code.
- Save the HTML.
- Refresh the page. This will make sure it still looks the same.
After the code is written on the button, just click it. Later Google Analytics will track and record it.
When you next log into your Google Analytics account, you can view the results of the download button tracking.
The code written on your website to track downloads will enable download tracking as page views.
To get downloads report, you need to navigate to:
- Site Content
- All Pages
GOOGLE TAG MANAGER
This option will be suitable if you want to track all downloads on your website instead of manually adding code to each file links on your website.
All that needs to be done is to add Tracking Automation using Google Tag Manager.
Here’s the step-by-step of how to tell Google Tag Manager to track when someone clicks a link on your website:
- Click New Tag in your Container Overview Menu. Then specify it is as a Universal Analytics (UA) Tag. Name the tag as ‘Link ABD Listener’.
- You will be prompted to ‘Choose A Trigger’. Just click + in the top right corner.
- Click ‘Trigger Configuration’ box. Then select ‘Just Links’ that is present within the ‘CLICK’ category.
- Select ‘Some Click Links’ under ‘This Trigger Fires On’.
When all is done correctly, you will be able to select the conditions. That is, under which conditions you want the TRIGGER to fire.
- Select the URL in the first box. This will prompt downloads on your website.
- Select ‘Matches RegEx’ in the second box.
- Type the Extension Name, in the third box, of whatever File Type you would like to track.
For example, if you are tracking PDF downloads’, your third box should display, “.pdf’, OR if you are tracking JPG downloads’, it should display, ‘.jpg’.
Once all is done properly, it means you have created a Trigger. Next, click ‘SAVE’ button. This will allow you to save the trigger.
If any visitor to your site clicks a link containing ‘.pdf OR ‘.jpg’, the TRIGGER will act. This results in an action which will record a download event in Google Analytics.
With the help of Google Tag Manager, you can
- Add Tags to your Website. The site can be associated with any element.
- Create an Event Trigger. This will help you track your downloads when you already have GTM on your website. Whenever a visitor clicks on your download link, Event Trigger will record an event in Google Analytics.
Google Analytics Version 4 has a built-in download tracking which Universal Analytics does not.
This will allow you to turn on download tracking. But it will be a problem for many users to work out how those downloads’ get reported; and where exactly to find that data.
Now, if you have turned on file download tracking, Google Analytics will report the download numbers in its Events report.
This Post Has 3 Comments
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.com/kz/register-person?ref=V2H9AFPY
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://accounts.binance.com/it/register?ref=GJY4VW8W
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://accounts.binance.com/en/register-person?ref=P9L9FQKY