In Google Tag Manager, Tags and Triggers function collectively to report the behavior of your guests on your Webstore and CMA. If you want to know the number of guests who clicked on the sign-up button but did not complete the process, or the number of guests interested in a particular product, then you can get such information by setting up Triggers and Tags.

You need to set up the Triggers first and then proceed to set up the Tags.

Important: Before you set up triggers and tags, it is important that you figure out the elements on your Webstore and the CMA (Buttons, Forms, Pages) that you want to track. 

To set up triggers

1.  Log in to Google Tag Manager by navigating to its home page
2. Click Sign in to Tag Manager.
    The Login page appears.
3. Sign in with your credentials.
    The All Accounts page opens with the name of your website. 

 4. Click the name of your Website.    
     Google Tag Manager dashboard opens.
 5. Click Triggers in the main menu. 

    The Triggers page opens.

6. Click New to create a new trigger.
    Trigger Configuration page opens.  

7. Give a name to the trigger on the top of the screen where it says Untitled Trigger.

8. Click the circular trigger icon in the Trigger Configuration box.

The Choose Trigger Type window opens with a list of triggers such as Page View and Window Loaded. See the following screenshot for reference.  

9. Based on your requirement, choose a Trigger Type.
Trigger Type is added to the Trigger Configuration page.
    Note: To track button clicks, you must use Click All Elements as the Trigger Type.       For page views use Page View as the Trigger Type. Likewise, you have other               trigger types to track various elements on your Webstore.

Note: If you are creating tags on Google Tag Manager for a mobile app (Android
or iOS) you will see the following trigger types that are Firebase events:

We have selected the Trigger Type as Click All Elements for the examples that            follow. 

After you set the Trigger Type as Click All Elements, based on your requirement,         you can proceed with either Scenario 1 or with Scenario 2.

Scenario 1

If you want to track all the buttons and the clicks that your guest makes on your Webstore, use the following steps. 

To track all the clicks and buttons 

1. Select All Clicks radio button in the Trigger Configuration page.
2. Click Save.
    Your trigger will be saved.
    If you have not named the trigger, Tag Manager will prompt you to name the trigger     and then save it.
3. Click Publish.
    All your changes will be published. 

Scenario 2 

If you want to track a single button such as a Buy Now button or an Add to Cart button on your Webstore, use the following steps. 

To track a single button 

1. Select Some Clicks radio button in the Trigger Configuration page.
   The Trigger condition drop-down lists open. 

2. Based on your requirement, select any one of the options from the first
    drop-down list.
    Example: Elements, ID, Classes, Target, Text.
    Note: The options available in the first drop-down are various HTML elements. 

 3. Select the element conditions from the second drop-down list. 

 4. Type the value for the trigger condition in the third field.
     Example: If you selected Click Id in the first drop-down list, you need to enter the        HTML element id in the third field.  

 5. Click Save.
     Your trigger will be saved.

 6. Click Publish.
     All your changes will be published.
     You have successfully set up Triggers in your Google Tag Manager.
     You can now proceed to set up the Tags.

See Also

Set up Tags in Google Tag Manager

Google Analytics and Google Tag Manager: Overview

Did this answer your question?