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.