Skip to Content
Tag ManagerTriggersCreate And Manage Triggers

Create And Manage Triggers

Use triggers to define the events that can run tags.

A trigger listens for a browser event, route change, custom data-layer event, timer, scroll threshold, or element visibility state. The trigger can also have conditions that must pass before connected tags run.

Preparation

Before you start

  • open the container draft you want to edit
  • know which event source the trigger should listen for
  • know which tag or tags will use the trigger
  • create variables first when condition values need {{variable_name}} templates
  • know whether the trigger should be active or paused after it is saved

Create a trigger

Open Triggers

Open the container, then choose the Triggers tab.

The table shows trigger name, type, condition summary, last updated time, status, and row actions. Use search to filter triggers by name, type, description, group, or condition summary.

Create a new trigger

Choose New Trigger.

Enter the trigger name.

Choose the trigger type

Use Select Trigger to choose the event source.

The trigger type selector is grouped by Page, Interaction, Events, and Engagement. The selected type controls which settings appear in the editor.

The New Trigger editor combines the trigger name, trigger type, type-specific settings, optional conditions, and enabled state.

Configure type-specific settings

Fill in the settings shown for the selected trigger type.

Some trigger types have no settings. Others use selectors, route mode, debounce, event name, timer values, scroll thresholds, or visibility options.

Add conditions

In Conditions, choose No conditions or Conditions.

When conditions are enabled, add one or more rules. The current editor fires the trigger when all listed rules are true.

Save the trigger

Choose Save.

The trigger is added to the container draft. Attach it to one or more tags from the tag editor.

Manage Existing Triggers

Use the row action menu to edit, duplicate, pause, resume, or delete a trigger.

Edit opens the trigger editor with the existing settings. Duplicate creates a new draft trigger with the same type, settings, conditions, and status. Pause keeps the trigger in the draft but prevents it from matching after publish. Resume makes a paused trigger active again. Delete removes the trigger from the draft and unlinks it from tags that used it.

Trigger editor fields

Name

The label shown in the Triggers table and tag trigger selector.

The name helps operators attach the trigger to the right tags.

Select Trigger

The trigger type selector.

The selected type defines the event source and available settings.

Type settings

The settings shown for the selected trigger type.

They narrow the event before conditions are evaluated.

Conditions

Optional field, operator, and value rules.

They narrow the trigger after the event matches.

Status

Active or paused.

Paused triggers stay in the draft but do not run connected tags after publish.
Validation

A trigger is configured when

  • the trigger has a name
  • the selected type matches the event source
  • required settings are filled in
  • condition fields and values match the event context
  • the trigger is attached to the tags that use it
  • the container is published when the installed script should receive it

Was this page helpful?