Want to know which links your visitors are clicking on on your website and where they head off to? If you have a link to a third party website, by default in Google Analytics, you’ll have no idea how many of your users are clicking on that link or much traffic you’re sending to that third party – but by setting up Outbound Link Tracking via Google Tag Manager, you can see exactly that!
So, how do we do it? Here’s a quick how-to guide:
Step 1: Create the Tag

Insert your own GA tracking ID when configuring the tag, feel free to use your own naming convention for the Event Category and Event Action but it’s important to use the {{Click URL}} variable for the Label – this will automatically pull in the URL of the link the user clicked on so you can see that information in your Google Analytics event reports.
Step 2: Create the Trigger

We want to track whenever a user clicks on a link, so we’re using a Click Event trigger targeting ‘Just Links’. We’ve selected ‘Wait for Tags’ so the tags have a chance to fire before the user moves away to the new URL and we’re enabling it on every page using the RegEx .* (if you’re not familiar with Regular Expressions, this will match everything).
The important part here is the Fire On rule, which states the Click URL does not contain yourdomainname.com (for us, it’s glowmetrics.com, yours will be whatever your website address is). This tells the tag to only fire whenever a user clicks on a link on your website that goes to a different website. Makes sense, right?
Once you’ve set up the tag and trigger, remember to publish your changes in GTM. Then whenever you’ve done that, you should be able to see Outbound Links being tracked in your Google Analytics account like this:

Easy when you know how! If you’ve got any questions on tracking Outbound Links or you would like more help with your Google Tag Manager set up, leave a comment below or Contact Us – we’d love to hear from you.
One response to “Outbound Link Tracking via Google Tag Manager”
Leave a Reply
Posted by
Michael Wilson
Michael is the Director of Strategy at GlowMetrics, implementing complex tracking for our largest clients via Google Tag Manager while steering our wider work across the Google Marketing Platform.
Read more from Michael WilsonBrowse by Category
- Social Media
- SEM
- SEO
- Google Ads
Digital Marketing
- Google Analytics
- Google Tag Manager
- Google Opimize
Digital Analytics
Optimise your website and marketing campaign performance with Ireland’s leading digital analytics agency
Sign up to our newsletterEnjoyed reading this article? Find more like it below…
Posted by
Joanne Kearney
Mar 19th 2021
Google Analytics
3 min read
Setting up Site Search in GA4
When talking about site search reporting in Google Analytics I always refer back to the client we had years ago that had over 5 years of site search data but...
Posted by
Conor Ross
Jan 29th 2021
Digital Analytics Insights
7 min read
How To Uplift Data Based On Cookie Opt-In Rates in Data Studio
The topic of cookies and opt-in rates is becoming increasingly important in the world of digital analytics as we navigate 2021 and beyond, with Google Analytics tracking often not considered...
Posted by
Michael Wilson
May 21st 2021
Google Analytics
3 min read
Rise in Direct Traffic & New Users in Google Analytics? It Might Be ITP…
Have you noticed a significant increase in Direct traffic in your Google Analytics account recently? Maybe it's coincided with a drop in Organic traffic? This is something we've seen happen...
Is there a way of doing this, but not hard coding the domain name? So in pseudo code something more like
Click URL does not contain THIS.domain
where THIS is automatically set to the current domain?
Thanks
Chris