Track downloads

Today, the AdWords agency in Marseille will show you how to track download events in Google Analytics using Tag Manager.

Create an event tag

To begin with, you need to:

  1. Create a «Universal Analytics» event tag. Under «Category», enter «engagement». Under «Action», enter «downloads». Under «Label», enter «{{Click URL}}’. Enter your Google Analytics tracking number.

Trigger at the right moment

Your tag is correctly configured to upload the downloaded files. Next, you need to create a trigger. To do this:

  1. Create a «Click» trigger that matches «Links only» « Tick »Some clicks on a link« Set the condition to »URL click«, »matches regular expression« and the regular expression »(.pdf|.zip|.rar|.gz)$’

String values ending in .pdf, .zip or .rar can be detected using this regular expression.

Web and Digital Agency – Google Tag Manager – click trigger – Vaniseo Marseille

Once the trigger has been created, you can send this tag to your site by deploying a new version of the container. Also, don’t forget to check this configuration using the preview.

If, within your Preview banner, you can see the tag that triggers when you click on a download link, it means everything is working perfectly.

Created by Vaniseo, your web agency in Marseille

Contact us

Our team will get back to you within 24 hours

Fancy finding out how much each channel brings in?

Google Analytics 4, conversions, dashboards: we make your figures easy to understand.