Understand Containers And Versions
A container is the record a website loads through the Tag Manager install script.
The container stores the workspace, name, allowed domains, draft version, published version, tags, triggers, variables, and status. The website does not load every edit in the editor. It loads the container’s published version.
Container Records
Each container belongs to the active workspace. The container list shows active
containers by default and can switch to archived containers with Filters.
An active container can be opened, edited, integrated, published, or archived. An archived container stays in the workspace history but is hidden from the active list. Archived containers can be restored from the archived list.
Draft Versions
The draft version is the editable version of the container.
When a container is created, Nitoriq creates draft version 1 and opens the
container editor. Tags, triggers, variables, and configuration changes are saved
to the current draft.
The Unpublished changes badge appears when the current draft is different
from the published version.
Published Versions
The published version is the version served by the installed container script.
Publish Container saves the current draft, compiles the container payload,
marks that version as published, archives the previous published version, and
creates a new draft from the published configuration.
If a container has no published version, the install script can exist on the site, but there is no live container payload for the public script endpoint to serve.
Install Script
The generated script uses a tracking domain and the container ID:
<script async src="https://YOUR_TRACKING_DOMAIN.com/niq/tags/CONTAINER_ID.js"></script>When the browser requests the script, Nitoriq serves the published container version for that ID. The script then loads the Tag Manager runtime from the same public tracking prefix.
Allowed domains are checked by the runtime after the published payload loads. If the allowed-domain list is empty, the runtime can boot wherever the script is installed. If the list contains domains, the current page hostname must match an allowed domain or one of its subdomains.
Container version fields
Name
The label shown in the Tag Manager container list and editor header.
Operators use it to identify the site, brand, or implementation area.Status
Whether the container is active or archived in the workspace.
Archived containers are kept out of the active working list until restored.Draft version
The version currently edited in the container editor.
Tags, triggers, variables, and settings are changed here before publishing.Published version
The compiled version served to the installed script.
Live pages load this version, not the current draft.Allowed domains
Optional hostnames where the runtime is allowed to boot.
The runtime checks this list before running tags.The container model is clear when
- the container record identifies the website installation
- draft changes are separate from published behavior
- the installed script points to a container ID on a tracking domain
- publishing is the action that updates what the installed script can load
- archived containers are hidden from the active list until restored
Was this page helpful?