Skip to Content
Tag ManagerTagsUnderstand Tags

Understand Tags

A tag is an action in a Tag Manager container.

The container runtime does not run a tag just because it exists. A published container loads in the browser, listens for trigger events, checks trigger conditions, resolves variables, and then runs the tags connected to the matched trigger.

Tags can send events to Nitoriq, change link URLs, push events into the Nitoriq data layer, fire image pixels, run HTML in a sandboxed iframe, or run JavaScript in the page context.

The Tags tab lists tag name, type, selected triggers, last updated time, status, and row actions.

How A Tag Runs

The browser flow for a tag is:

  1. The installed container script loads the published container version.
  2. The runtime starts and registers the container’s triggers.
  3. A browser event happens, such as DOM ready, window load, route change, click, form submit, timer, scroll depth, visibility, or custom event.
  4. The runtime checks trigger conditions.
  5. If a trigger matches, the runtime resolves the variables used by the tag.
  6. The tag action runs.

A tag can be connected to more than one trigger. It runs when any selected trigger matches. A tag with no selected triggers can be saved in the draft, but it has no runtime event that can fire it.

What Tags Can Change

Some tags emit data. Report Conversion sends a conversion event to Nitoriq. Click CTA can emit a click event. Custom Image creates a browser image request to a pixel URL.

Some tags change page behavior. Replace Links and Append Query Parameter to Link update matching anchor URLs. Click CTA updates the clicked link before the browser follows it.

Some tags coordinate other Tag Manager behavior. Custom Event pushes an event and payload into the Nitoriq data layer, where custom-event triggers and data-layer variables can use it.

Some tags execute custom browser code. Custom HTML runs inside a sandboxed iframe. Custom JavaScript runs in the page context with a context object.

Tag record fields

Name

The operator-facing label shown in the Tags table.

The name identifies the action without changing runtime behavior.

Type

The runtime action the tag performs.

The type controls which settings are shown in the editor.

Settings

The type-specific values used when the tag runs.

Settings can include URLs, selectors, conversion fields, payload keys, iframe options, or code.

Triggers

The trigger IDs connected to the tag.

The tag runs when any selected trigger matches.

Status

Whether the tag is active or paused in the draft.

Paused tags remain in the container but do not run after publish.

Templates

Dynamic values written as {{variable_name}} inside supported fields.

Templates let a tag use values from variables and built-in context at runtime.

Draft And Publish Behavior

Creating, editing, duplicating, pausing, resuming, or deleting a tag changes the container draft.

The installed website script receives those tag changes after the container is published. Publishing compiles the draft, stores the published version, and makes that version available to the container script.

Was this page helpful?