GTM & GA: 50 ways to build a trigger

The problem is all inside your head She said to me The answer is easy If you take it logically I’d like to help you In your struggle to be free There must be 50 ways to build a trigger I want to track clicks on this button. Green Button Right-click (or control-click on a Mac) the button, and choose Inspect Element. Check out the button (and its inner <span> and containing <div>) code. All of the following trigger definitions will track clicks (or link clicks) on this button, using just the built-in variables. Enjoy! Link Click Trigger: {{Click URL}}[…]

Read more

GTM & GA: Track all outbound links with one tag

We already did download tracking with one tag – now let’s use the same principles to set up outbound link tracking. Step 1: Enable default variables. We’ll use the same default variables that we used for downloads, so if you’ve already set that up, you’re all set. If not, enable {{Click URL}} and {{Click Text}}. Step 2: Set up the GA tag. Let’s think about how this should look in GA: Event Category: outbound linksThis value can be hard-coded in – the other two are dynamically populated by variables. Event Action: Similar to downloads, the destination URL of the outbound[…]

Read more

GTM & GA: Track all downloads with one tag

There are a few things that live in almost every Google Tag Manager container I set up, and I’ll be covering several in the coming days/weeks. One of those is download tracking. GTM’s auto events are simply wonderful, because most of the time, there’s no need to handle one-offs at all anymore; I just add one tag and one trigger, and BAM, all downloads are tracked. Not only that, you can dynamically send more useful data to GA than you probably ever have in the past. Here’s how it works! Step 1: Enable default variables You’ll need the “Click URL”[…]

Read more