Sunday, 24 November 2019 21:22

Outbound Link Tracking with GTM - Update

Written by
Rate this item
(0 votes)

We'll it is time to update this earlier blog article - GTM has a new check for outbound links.  This allows us to check for outbound links is now a selection in auto-event variables.  We can then use this as part of our trigger.  Here is an example of this in an auto-event variable and then we will incorporate this into a complete outbound link solution:

GoogleTagManager Outbound Auto-Event Variable

This variable returns a true value if the link is not in one of the 'Affiliated Domains'.  In our example we have a single domain, but multiple domains can be included as part of a comma seperated list.  The next step is to update our trigger so it uses the Outbound Link variable as our condition for our trigger.  Notice that we do not have to put in any logic in the trigger - GTM has done all the Boolean Bookkeeping for us!

GoogleTagManager Outbound Trigger with Auto Event Variable

And then our Tag will be automatically updated - it will look the same:

GoogleTagManager Outbound Tag with Auto Event Variable

In this tag - a nice update would be to record the Click URL in the label field to provide additional information for future analysis.

And then a quick test to confirm everything is working (use 'ctrl-click' to open up the link in a new tab so you can see the values in GTM Preview):

GoogleTagManager Test Auto Event Variable

It passes the test!  We can publish our container with our new Outbound Link Auto-Event Variable.  (A complete test will check that this does not fire for internal links, downloads, image clicks...)

Read 6559 times Last modified on Sunday, 29 March 2020 15:59
Jay Murphy

Jay Murphy is a digital analytics expert and founder of Trionia, where he specializes in transforming data into actionable insights for large and mid-sized businesses. With over thirty years of experience and a passion for Google Analytics since its inception, Jay has honed his skills to bridge the gap between technical data analysis and strategic business planning. An educator at heart, he has developed and taught comprehensive digital marketing courses at both the undergraduate level and within organizations, enriching minds with his deep understanding of the digital analytics landscape.

His career, which began in systems analysis for spacecraft guidance, has evolved through roles that blend technical acumen with strategic vision across various sectors, including Fortune 500, Higher Education and Non-Profits. Certified in Google Analytics since 2011, Jay's leadership at Trionia has spearheaded successful online campaigns and innovative marketing strategies, underlining his commitment to leveraging data for growth. Jay's approach goes beyond the numbers; he's a storyteller who uses data to drive business success, making him a pivotal figure in the digital marketing world.

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.