Understand Triggers
A trigger is the rule that decides when a tag can run.
The container runtime listens for browser and data-layer activity. When a trigger’s event happens, the runtime checks the trigger’s type-specific settings, then checks any conditions. If the trigger matches, the runtime runs the tags connected to that trigger.
Trigger Parts
A trigger has three runtime parts:
- a type, such as DOM ready, click, form submit, timer, or custom event
- settings for that type, such as selectors, route mode, delay, thresholds, or event name
- optional conditions that must pass after the event is detected
A trigger can be connected to one tag or many tags. A tag can also have more than one trigger. The tag runs when any selected trigger matches.
Event Then Conditions
Trigger matching happens in two layers.
First, the event layer decides whether the browser event matches the trigger type and settings. For example, a click trigger can check mouse button, selector, outbound status, and href regex. A custom-event trigger checks the pushed event name.
Second, the condition layer checks additional fields. Conditions can read page fields, referrer fields, Nitoriq context, data-layer paths, event values, click fields, and form fields.
Draft And Publish Behavior
Creating, editing, duplicating, pausing, resuming, or deleting a trigger changes the container draft.
The installed script receives those trigger changes after the container is published. Paused triggers stay in the container but do not match after publish.
Trigger record fields
Name
The label shown in the Triggers table and tag editor.
Operators use it when attaching triggers to tags.Type
The browser or data-layer event the trigger listens for.
The type controls which settings appear in the editor.Settings
Type-specific event matching values.
Settings define details such as selectors, route mode, timer delay, scroll thresholds, or event name.Conditions
Optional rules checked after the event matches.
Conditions narrow when connected tags can run.Status
Active or paused.
Paused triggers do not fire connected tags after publish.Was this page helpful?