How to track multiple buttons and links on a page using Google Tag Manager?

Let's start

Using the built-in listener for clicks would be better.

What happens is when you use a GTM click listener it listens for clicks that matches your trigger and sends your data, and no code change is required to set this up

while using the code implementation you would have to change the code, push data with event into data Layer and make a trigger in GTM to listen for that event to fire your tag.

So, in conclusion using the GtM listener would be better because its less time consuming, easy and can has version control as well.

Read the related article: https://support.google.com/tagmanager/answer/6106961?hl=en&rd=1

Don't miss out when new resources launch

Our customer analytics experts share wisdom only once a month

Share now
We are customer-analytics consultancy that transforms messy data into actionable insights that will help you grow your company and make better data-backed decisions.