How to Easily Track & Categorize File Downloads in Google Analytics with Google Tag Manager

How to Easily Track & Categorize File Downloads in Google Analytics with Google Tag Manager

Google Analytics and Google Tag Manager offer a simple solution to track these downloads without developer support. You can automatically categorize your downloads by file type using the filename extension of your download.

If you’re looking for download reports using Google Analytics data, subscribe because it’ll be the next video published on this channel.

Filename extensions regex:
.(pdf|xlsx?|docx?|pptx?|odt|zip|rar|txt|rtf|odp|ods|xlsm)$

00:00 Intro
00:46 Configuring Download Tracking in Google Tag Manager
09:16 Testing Download Tracking
11:43 Refining Download Tracking in Google Tag Manager
14:45 Validating Data in Google Analytics
16:20 Deploying Tracking From Google Tag Manager

If you have a website where you want users to access files, documents, or any other kind of downloads, you’ll definitely want to track how often your files are downloaded. Tracking downloads can give you visibility into why certain files are downloaded more than others.

This tracking method with Google Tag Manager will read the filename extension in the file download and automatically categorize the download by file type.

When you set up the download tracking, you can find your data for downloads under the events report. The events report lays out your file download data from your website cleanly.

7 thoughts on “How to Easily Track & Categorize File Downloads in Google Analytics with Google Tag Manager”

  1. is it normal that it's just tracking the downloads in debubg mode? if i hit the download without it nothing happens… i even tried it on other computers

  2. Great video and great step-by-step. I am trying to track downloadable content on my website where visitors have to share their email prior to be sent/forwarded to the url where the PDF is. I followed all steps on your video, but the tag is not firing. Any idea on how to fix it? Any help is greatly appreciated!

  3. Nobody is a expert user watching this video.. You did not think of a worst case scenario.. on my side it does not worked out.. I will find the bug but a video with 17 Mins without a worst case scenario is very time expensive.

  4. Thank you for sharing your knowledge. Sadly I only watched the first 10 minutes – it looked very good so I followed the steps. Unfortunately the event is not being tracked at all – at least from what I can see when I go through the preview 🙁 The only hits that have been identified are for the PageView.

Leave a Comment

Your email address will not be published.