October 10th, 2013 | Published in Google Analytics
As sites become more dynamic and want to understand users’ site experiences in more detail, business owners need to know more: how long are visitors staying on a particular page? How are they interacting with interactive elements like image carousels? How many are clicking the Contact Me button? How many are clicking outbound links? Increasingly, site analytics are incomplete without answers to questions like these.
With Google Tag Manager’s launch of Auto-Event Tracking, we’re excited to announce a solution that provides the power of event tracking without needing to write code. By using the new Event Listener tag, you can tell Tag Manager when you want to listen for events, and then write detailed rules for what to do when an event happens. See an example of listening for form submits here:
Once you have your event listener set up, you can have tags fire based on form submits using a rule that looks for the event gtm.formSubmit. (Of course, Tag Manager supports more than form submits: it also includes clicks and timer events.) You can also make sure you’re getting the right form by using our Auto-Event Variable macros that let you narrow things down with attributes like the element ID and the form target.
The end result: you can deploy event tracking to your site and send event tracking data to Google Analytics without adding any code to your site. You can deploy measurement campaigns faster, and not writing custom code makes your solutions more robust.
Of course, it’s easiest to see the whole picture by walking through a full example. Check out the following resources for more:
- Tracking Google Analytics events with Tag Manager in our Help Center
- Auto event tracking with Google Tag Manager at Justin Cutroni’s Analytics Talk blog
- Event Listener documentation and Event Tracking Macros documentation in our Help Center
We’re looking forward to getting your feedback - let us know what you think!
Posted by Lukas Bergstrom, Google Tag Manager PM