How To Track Clicks With Google Tag Manager
12 January 2018
Share This Post
Time to Learn: 20 Minutes
Time to do: 5 Minutes
Text or button click tracking on a website will give you an insight into user behaviour. Many websites have contact forms that you can track to see which channels are driving you the best traffic, however, some website visitors may choose to contact you directly by email.
This guide will teach you how to set up a button or email click as a goal in Google Analytics by using Google Tag Manager. So let’s get started!
Before you start configuring your button click tracking, you will need top-level access to the following accounts:
Important! Google Analytics must be set up in Google Tag Manager for this to work.
On occasions, website visitors instead of filling out a contact form, will want to contact the company or an individual team member and so they’ll usually do this by either calling them or emailing them. To email they will likely click on the “email” button or email address in their profile or on the contact page like below.
By tracking this button click via Google Tag Manager you will discover
First off, we need to activate the click variables in Google Tag Manager, since this variable if not set up as standard.
To do this, simply click on the “Variables” button on the left menu, then “Configure” and then scroll down to the “Clicks” and tick them all.
To set up a trigger in Google Tag Manager follow these three steps.
Now you have your Trigger set up you will need to create a Tag for it so you can add it to the website and test.
Great! You are now ready to see if your Trigger and Tag have been set up properly and is working as it should.
To test your tag out, click on the arrow to the right of the PREVIEW button and then head over to your website and refresh the page, so you see the white “Debug” bar at the bottom. (If it does not appear you have not properly added your GTM code – speak with your developer)
Click on the “email” text button on your website and you will note that the GA Event you set up appears. All good? Head back to Tag Manager and PUBLISH (see image).
Didn’t appear? click on the variables (after you click on the text email) and see which settings you need to change. See below not many options are available but we can track the “Click Text” [email protected]
Head back to GTM and change the click trigger type with the following settings:
If it doesn’t appear again you will have to go back and find where you went wrong.
This is the same process if you wanted to track any other button or text click that is an outbound link. For example, a link to an external website or social media profile.
Note: If you want to track all email text clicks across the whole website, then just include @yourwebsite.com in the above Trigger Configuration.
The final step you will need to do is to set up a goal in analytics. So head on over there and in Admin > Goals create a new one
Then set up the goal by…
There you have it, you will now be able to track website visitor email or text clicks. If this has been helpful or you need further help then please leave a comment below. Happy tracking everyone!
Looking for powerful SEO? Learn more about what we do here.