Skip to Content
Tag ManagerPublishing & ValidationTroubleshoot Container Events

Troubleshoot Container Events

Use this guide when a page loads a Tag Manager container but the expected tag, event, link change, or conversion does not appear.

Work through the runtime path in order: container script, runtime script, allowed domain, published version, trigger match, variable resolution, tag action, then event delivery.

Investigate the missing behavior

Confirm the script is on the page

Open the page and inspect browser network requests.

The page must request the container script:

/niq/tags/CONTAINER_ID.js

If the request is missing, the container script is not installed on that page or template.

Confirm the container has a published version

Open the container in Nitoriq.

The live script serves the published version. Draft-only changes are not served to the page.

Check the tracking domain and runtime request

The container script loads the shared runtime from the same script origin:

/niq/tag-manager/runtime.js

If the runtime request fails, check the script host, tracking domain, response status, content blockers, and browser console errors.

Check allowed domains

Open Integrate and review Allowed domains.

If allowed domains are configured, the live page hostname must match one of the allowed domains or a subdomain of one. If it does not match, the container loads but does not boot.

Examples:

  • example.com allows example.com
  • example.com allows shop.example.com
  • example.com does not allow example.net

Check the published script hash

Open the network response for /niq/tags/CONTAINER_ID.js.

The script header comment includes the container ID and compiled hash. The debug overlay also shows the compiled hash when debug mode is enabled.

Confirm the trigger can fire

Open the trigger used by the tag.

Check the trigger type and settings:

  • page triggers need the right page lifecycle or route behavior
  • click triggers need the selector, outbound setting, button, or href regex to match the click
  • form triggers need the selector to match the submitted form
  • custom-event triggers need the exact event name
  • scroll, timer, and visibility triggers need thresholds or selectors that can match the page state

Check trigger conditions

Review every condition on the trigger.

The current editor treats multiple rules as all required. If one rule does not match, the trigger will not fire.

Confirm variables resolve

Check each variable used in the tag or trigger.

If a template still appears as raw text, such as {{order_id}}, the variable is missing, named differently, not available in that context, or not resolving before the tag runs.

Enable browser debug when needed

For browser-side debugging, add this query parameter to the page URL:

niq_debug=1

You can also set this browser storage value:

localStorage.niq_debug = "1"

The runtime can show a NIQ Debug overlay with container ID, version ID, compiled hash, Nitoriq tracking context, endpoint information, trigger evaluations, tag-fired events, queued events, and flush attempts.

Check Nitoriq logs or the receiving system

For Nitoriq events, inspect requests to:

/niq/ev

For third-party pixels or webhooks, inspect the receiving system or browser network request.

Common causes

Script missing

The page does not load the container script.

The runtime cannot start without the container script.

No published version

Changes exist only in the draft.

Draft changes are not served by the live script.

Allowed-domain mismatch

The page hostname is not allowed for the container.

The container will not boot on that hostname.

Cached script

The browser or edge layer still has the previous container script.

A recent publish can take a few minutes to appear in a cached page session.

Trigger mismatch

The selected trigger does not match the actual page event.

Connected tags run only after a selected trigger matches.

Condition mismatch

One or more trigger conditions are false.

All listed conditions must pass.

Variable unresolved

A template value is missing, named incorrectly, or unavailable in context.

Tags can fire with incomplete URLs, payloads, or event values.
Validation

Troubleshooting is complete when

  • the live page loads the correct container script
  • the runtime loads successfully
  • allowed domains permit the live hostname
  • the expected published version is active
  • the trigger matches the tested behavior
  • variables resolve to final values
  • the tag action is visible in browser network requests, Nitoriq logs, the receiving system, or reports

Was this page helpful?