In the previous episode the AdWords agency in Marseille We’ve already talked about tags. Here, you’ll find out what triggers are, how to use them and how to configure them.
Understanding triggers
Do you want certain tracking tags to be triggered only when specific conditions are met, such as:
- If the user has clicked a button If the user is on a page If the user has remained on a page for a certain amount of time
To do this, simply create a condition that will trigger the correct tag. Creating a trigger simply involves writing these conditions. You also have the option of creating trigger libraries.
How to create a trigger
First trigger: scroll depth:
You are going to create a trigger that detects whether a user is actually scrolling down a page. To do this, you need to monitor how far down the page your users are scrolling on your website’s pages:
- Click on «New». Click on «Trigger settings». Select «Scroll depth» from the overlay on the right-hand side of your screen
Next, you need to choose whether you want to track horizontal or vertical scrolling events. You will need to set the scroll depth value (as a percentage). Normally, the trigger will be configured to be active on your pages.

Second trigger: time spent reading a page:
- Click on «New». Select «Timer» in the «Other» section « section. The timer must be set in milliseconds, so enter 10,000 as the interval value to set 10 seconds. Enter »1« in the »Limit’ field (this limits the number of occurrences)
Next, you will see three fields which you can use to set up a condition. To enable the timer on all pages, you must:
- Set the first field to «page hostname». Set the second field to «contains». Enter your domain name in the third field.
Configuring triggers
It is very common to target a button by its class or ID (the simplest way is to mark up pages with classes prefixed with «gtm-». Adding the class «gtm-button-subscribe» to a button will allow you to configure a trigger by targeting that class.
Both triggers will be needed to reduce the page bounce rate in Google Analytics.
Disable a tag within a container
To temporarily disable a tag, you need to pause the operation of a tag and its trigger. All tags will be retained, and you can disable specific ones by clicking on a tag’s options menu and then selecting «Standby».
The next episode will cover variables. You’ll also learn how to set up your workspace more effectively.
Created by Vaniseo, your web agency in Marseille
Contact us
Our team will get back to you within 24 hours
Fancy finding out how much each channel brings in?
Google Analytics 4, conversions, dashboards: we make your figures easy to understand.
