How to Create a Click Class Trigger in Google Tag Manager

Google Learning
For the purpose of this tutorial, let’s assume that you want to create a Google Analytics event that fires every single time somebody clicks on the big orange ‘Contact’ button on our website.

Your first step in this process is to find the Click Class. Follow these three steps:

1)Open up the Chrome browser
2) Right click on the element you want to track – in this case our orange Contact button – and click ‘Inspect Element’
3) Chrome DevTools will pop up and you’ll see a named Class. Copy that name.

Now that you’ve got your Click Class handy, you’ll want to navigate back to Google Tag Manager.

1) Select ‘Triggers’
2) ‘New’ (big red button)
3) Name your trigger “GA – Contact Button Clicks”
4) Select ‘Click’ as your event type in step 1
5) Targets dropdown should be set to ‘Just Links’
6) Leave the ‘Wait for Tags’ and ‘Check Validation’ alone and click ‘Continue’
7) In Step 3, Enable when should be set to ‘Click Classes’ contains [insert Click Class here from your Inspect Element step above]
8) Finally in step 4, fire on URL matches RegEx (regular expression) .* to fire on all pages of your website.

Products You May Like

Articles You May Like

Tecno Phantom V Flip 5G Hands-on Video Leaked Online; Price in India Tipped
iPhone 15 Pro Max vs Samsung Galaxy S23 Ultra: Price in India, Specifications Compared
Google Pixel Watch 2 Tipped to Inbuilt Thermometer, Safety Updates: All Details
Huawei MatePad Pro 13.2 Confirmed to Debut on September 25: All Details
Itel P55 to Be India’s First 5G Smartphone Under Rs. 10,000: Report

Leave a Reply

Your email address will not be published. Required fields are marked *