Container Tags
In digital marketing and advertising, a container tag is a single snippet of code (typically JavaScript) placed on a website that acts as a wrapper for loading and managing multiple other tags, such as tracking or advertising tags. Rather than adding each individual tracking code separately, a website operator installs the container once and then manages the tags inside it. This makes it easier to add, change, or remove tracking technologies without editing the site's underlying code each time.
A container tag is a single JavaScript snippet deployed on a web page that serves as a delivery mechanism for one or more contained tags (for example analytics, advertising, or conversion-tracking tags). It enables merchants or publishers to add, modify, or remove downstream tags through a central configuration rather than by directly amending page source code. Because container tags can load tags that place cookies or similar identifiers, or that access information already stored on a user's device, their deployment falls within the scope of the ePrivacy Directive's rules on storage and access in most EU/EEA jurisdictions, and any resulting personal data processing engages the GDPR. Where a container loads non-essential tags (such as analytics or advertising), prior consent is generally required in the EU before the container fires those tags; consent requirements differ under the UK regime and under US state laws such as the CCPA/CPRA, which often rely on opt-out mechanisms. The term is context-dependent: it is distinct from an HTML container element used to group page elements, and from a Docker image container tag used in software versioning. This entry does not address the specific configuration of any individual tag management platform, nor whether a particular container setup satisfies applicable consent obligations, which depends on facts not covered here.
Why it matters
Container tags concentrate the management of many tracking and advertising technologies into a single point of control on a website. Because a container can load tags that place cookies or similar identifiers, or that access information already stored on a user's device, its deployment falls within the scope of the ePrivacy Directive's rules on storage and access in most EU/EEA jurisdictions, and any resulting personal data processing engages the GDPR. This means the compliance question is not simply whether a container is installed, but which tags it fires and under what conditions.
The central risk is timing and control. Where a container loads non-essential tags such as analytics or advertising, prior consent is generally required in the EU before those tags fire. A container that loads and executes downstream tags on page load, before a user has made a choice, may therefore result in non-compliant processing even if the underlying consent banner appears correct. Because containers make it easy to add, change, or remove tags through a central configuration rather than by editing page source code, changes can be introduced quickly and without developer review, which can outpace the organization's consent governance if controls are not in place.
Consent requirements differ across jurisdictions, so a single container deployment may need to behave differently depending on where the user is located. The EU generally relies on prior opt-in consent for non-essential tags, the UK regime imposes its own requirements, and US state laws such as the CCPA/CPRA often rely on opt-out mechanisms. Whether any particular container setup satisfies applicable obligations depends on facts specific to the deployment and is not something the technology guarantees on its own.
Who it's relevant to
Inside Container Tags
Common questions
Answers to the questions practitioners most commonly ask about Container Tags.