skip to Main Content
Using Tag Manager To Track Events & Goals On A Website Pt 2

In part 1 of this series I showed you how to set up Tag Manager on your website.

This time around I will work toward answering the question: How do I create triggers and tags in Google Tag Manager?

Triggers are an important step toward tracking a variety of ‘events’ on your website. An event is an action a visitor to your site makes, such as clicking a phone number, a submit button on a contact form, etc…

Here are the steps to create a basic trigger:

1. Login to your Tag Manager account here: https://tagmanager.google.com/

2. Go to the account you created in Part 1.

3. Click on the ‘Triggers’ option in the left menu:

Creating Triggers and Tags Step 3

4. Click the ‘NEW’ button (A), then click anywhere in the ‘Trigger Configuration’ box (B):

Creating Triggers and Tags Step 4

5. You will see several options in a list – I suggest you experiment and play around with some of these after you’ve set up the basic tags I am showing you here.

Click on ‘All Elements’:

Creating Triggers and Tags Step 5

6. Click the ‘Some Clicks’ radio button:

Creating Triggers and Tags Step 6

7. Now open your website and find the element you would like to track. In this case I am going to track when someone clicks on an image link on my website.

You’ll need to use a modern browser for the following – Chrome is best.

Right-click (cmd click on Mac) on the link, then click ‘Inspect’:

Creating Triggers and Tags Step 7

8. In the inspector you can see I’ve added a class to the image called ‘android-download’ (A above).

9. Now go back to Tag Manager and change the first drop down (A) to ‘Click Classes’, make sure the second drop down says ‘contains’ (B) and enter the class of the element you want to track in the third field (C):

Creating Triggers and Tags Step 9

Give your trigger a new title (D above), then click ‘SAVE’ (E).

10. Now click the ‘Tags’ option in the left menu (A) and click the ‘NEW’ button (B):

Creating Triggers and Tags Step 10

11. Click anywhere in the ‘Triggering’ box (A):

Creating Triggers and Tags Step 11

12. Click on the trigger you just created (if you have created several tags, choose the appropriate trigger for the tag you are creating):

Creating Triggers and Tags Step 12

13. Now click anywhere in the ‘Tag Configuration’ box:

Creating Triggers and Tags Step 13

14. Choose the ‘Universal Analytics’ tag:

Creating Triggers and Tags Step 14

15. From here, click the drop down under ‘Google Analytics Settings’ (A) and choose ‘{{Analytics}}’, then click on the drop down under ‘Track Type’ (B) and choose ‘Event’:

Creating Triggers and Tags Step 15

16. Give your tag an appropriate title (A), then under the ‘Event Tracking Parameters’, enter some text that makes sense for what you are trying to track (B). When you’re done, click ‘SAVE’ (C):

Creating Triggers and Tags Step 16

That is how to create a basic Trigger and Tag in Google’s Tag Manager. In the next post I will explain how to test the Tag using ‘Preview Mode’ and also how to use Preview Mode to help you quickly set up more tags.

Rich Brown

Rich is one of the smartest dudes around here – he is our SEO Strategist at TheOnlineCo. He is a learner, he enjoys figuring out how to make things work and is tenacious about getting your SEO sorted. Rich has this ability to implement SEO strategies that help our clients rank for their designated keywords. He is thorough, methodical and highly skilled.

Back To Top