Previously I have written a post about how Link Click Listener and Click Listener works in Google Tag Manager. That was for using with old version of GTM. The below is how you can implement these two for new Google Tag Manager.
How to implement Link Click Listener and Click Listener in new GTM
I will skip the parts about creating GTM container and such as these are mentioned in my old post. Instead I will just go right to the part where you create these two listeners.
- In new GTM interface, the naming has changed. Rules have been changed to “triggers”, Macros have been changed to “variables”.
- New GTM has Enabled Built-In Variables which basically means you now don’t have to manually create Variables (Macros) for GTM Container ID.
I think this is cool because it saves a lot of time for me to create these and now I just have to tick/check any Variables I want to implement.
Link Click Listener Implementation in new GTM
1. Go to Triggers and click on New Trigger:
4. You can put max.wait time (which means delay link open until all the tags that depend upon this event have fired or the specified timeout has elapsed, whichever comes first)
7. And then once you click save, it is done. You have set up a trigger to track all link clicks happening on your website.
Click Listener Implementation in new GTM
Similarly to link click listener implementation, implementing click listener follows the same process.
Note: Before creating this tag, you might want to enable your built-in variables such as Click ID, Click Target etc.
Cheers!
Zin Ko
Note: This post also appears on zinkohlaing.blogspot.com.
Hi Zin Ko,
Thanks a lot for both posts. I would be very thankful if you can answer two further questions:
1) Do tags created as per your old post need to be migrated to the new model?
2)Should I keep the listeners I created following the instructions on your old post or get rid of them?
Thanks!
Hey Pablo,
Just saw your comments.
1) If you allow Google to migrate to new GTM, they will be automatically updated so you don’t have to do anything.
2) My old post will only be applicable for older version of GTM so in new GTM, you won’t need these anymore. Hope this helps.
So… then I don´t need anymore old tags such Click Listener or Link Click Listener or Form Submit Listener from my old GTM (migrated automatically) in my new GTM?
Can I delete them and all tags will works OK?
If now it works with Choose Event inside triggers… choosing correct type (Click, Form Submit, etc.)…is it OK? Í don´t need old listener tags anymore?
Thank you!
Yes you are right, you don’t need them anymore
Thank you!
Very interesting post!