Notification

G Suite is now Google Workspace: everything your business needs to get work done.

About triggers

Tags fire in response to events. In Google Tag Manager, a trigger listens to your web page or mobile app for certain types of events like form submissions, button clicks, or page views. The trigger tells the tag to fire when the specified event is detected. Every tag must have at least one trigger in order to fire.

Triggers are evaluated when code on the page or app is executed, and associated tags are fired or blocked when the trigger conditions are met.

Create a new trigger

To create a new trigger:

  1. Click Tags and then New.
  2. Click Trigger Configuration.
  3. Select the trigger type you would like to create.
  4. Complete the setup for the selected trigger type.

Create a trigger from a tag definition

You can create a new trigger during tag configuration. From any tag configuration page:

  1. Click Triggering.
  2. Click Add Add.
  3. Click Trigger Configuration.
  4. Select the trigger type you would like to create.
  5. Complete the setup for the selected trigger type.

Edit a trigger

To edit an existing trigger:

  1. Click Triggers.
  2. Click the name of the trigger you want to edit.
  3. Click Trigger Configuration to edit the trigger.
  4. Click More more actions to copy, delete, view changes, or show notes for the selected trigger.

Trigger filters

New triggers default to fire on all events for the associated event type. You can further specify when a trigger fires with trigger filters. To enable a filter, look for "This trigger fires on" at the bottom of a trigger configuration page, and select "Some <event>", where <event> is the type of event you'd like to work with.

Each filter is made up of a Variable, an Operator, and a Value:

Variable (menu) Operator (menu) Value (text field)
Select the appropriate existing Tag Manager variable, add a new built-in variable, or create a new variable from this menu. Choose an operator from the menu, e.g. equals, contains, less than, matches RegEx, etc. Tag Manager compares the value you provide with the value in the variable at runtime. Enter an appropriate text value.

For example, a tag with a trigger based on a pageview event with the following filter may be used to fire a tag on a website where /products/ is a predictable part of the URL on all product pages:

Page URL contains /products/

Related resources

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
10455320735335199552
true
Search Help Center
true
true
true
true
true
102259
false
false