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

Google Pixel 9 May Offer 2 Years of Free Satellite SOS Service Like Apple: Report
Hyundai’s COO Tarun Garg On Accessibility And Inclusivity
The Asus ROG Ally X turns PC gaming into a portable console
Google Pixel 9 Series May Reportedly Get Samsung-Made OLED Displays
Best Smartwatch Deals Under Rs. 20,000 During Amazon Prime Day Sale

Leave a Reply

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