Event Listeners have been an extremely useful feature in Google Tag Manager, making it easy to capture on-page interactions like link clicks, downloads, button clicks, and form submissions. By listening for events and sending data to GA, you can get more detailed and more precise information about how people are using your site.
In GTM’s Version 2 interface, listening for events is now more efficient than ever.
Instead of requiring both a Listener tag and a firing Rule as before, listening for an event can now be accomplished with a single Trigger. (In V2, triggers are the upgraded version of rules.) Hence, a trigger can now be used to both listen for an event and fire the desired tracking tags as a result.
We had previously written a tutorial on How to Use Timer Listeners in Google Tag Manager. We can now do the same with Timer triggers in GTM Version 2.
The most common way that we use Timer triggers is to track the time a user spends on a particular page. Wait, doesn’t Google Analytics track Time on Page automatically? Well, yes and no. GA calculates time spent on a given page by taking the difference between the timestamp of that pageview and the timestamp of the subsequent hit. But if a pageview is the last (or only) hit in the session, GA will assign it a time of zero.
That’s where Timer triggers come in! If you’re using GTM (and if you’re not, you should be), Timer triggers give you a simple way to get more precise metrics for time on page, session duration, and bounce rate in Google Analytics.
Let’s now take a look at how to implement Timer triggers in GTM Version 2. Continue reading “How to Use Timer Triggers in Google Tag Manager [V2]” »