Skip to main content
Category: Tracking Technologies

Tag Manager

Also known as: TMS, Tag Management System, Google Tag Manager, GTM
Simply put

A tag manager is a software tool that lets website and app owners add, update, and organize tracking snippets (called tags) through a single interface, often without editing the underlying site code directly. Marketers and analysts use it to deploy tags for purposes such as analytics and advertising more easily than hand-coding each one. Because many of these tags set cookies or similar technologies or collect personal data, how a tag manager is configured has direct implications for cookie consent and privacy compliance.

Formal definition

A tag management system (TMS), such as Google Tag Manager, is a software solution that manages the lifecycle of digital marketing and analytics tags, small pieces of JavaScript or tracking code, used to collect and share data across a website or mobile app. It provides a web-based interface through which non-developers can configure, deploy, and fire tags via triggers and variables without direct changes to a site's source code. From a compliance standpoint, a tag manager is an operational layer rather than a consent mechanism: many tags it deploys read or write information on a user's device (cookies, pixels, local storage, SDKs) and process personal data, so under the EU ePrivacy rules and the GDPR such tags generally must be gated behind valid prior consent where required. Practitioners typically integrate the TMS with a consent management platform (for example, via consent mode or trigger conditions) so that tags fire only when the applicable legal basis or consent state permits; the tool itself supports but does not guarantee compliance, and correct configuration and legal judgment remain necessary. Requirements differ by jurisdiction, opt-in prior consent is generally expected in most EU and UK contexts, while several US state regimes rely on opt-out signals, so the compliant configuration of a tag manager depends on the applicable framework and the facts of each deployment.

Why it matters

A tag manager sits at the center of how many organizations deploy tracking on their websites and apps, which makes its configuration a decisive factor in whether cookie consent obligations are actually met. Because a single interface can control tags for analytics, advertising, and other purposes, many of which read or write cookies, pixels, local storage, or SDK data, the way tags are gated determines whether tracking fires before or only after a user has provided any required consent. A tag manager that fires non-essential tags on page load, regardless of the user's choices, can undermine an otherwise well-designed consent banner.

The core compliance risk is that a tag manager is an operational layer, not a consent mechanism. It makes deploying tracking easier, including for non-developers, which is precisely why misconfiguration is a common source of exposure: a tag added through the interface may begin collecting personal data or setting cookies without being connected to the site's consent logic. Under the EU ePrivacy rules and the GDPR, non-essential tags generally must be gated behind valid prior consent where required, so responsibility for ensuring tags fire only when the applicable legal basis or consent state permits rests with how the organization configures and governs the tool.

Because requirements differ by jurisdiction, opt-in prior consent is generally expected in most EU and UK contexts, while several US state regimes rely on opt-out signals, the same tag manager deployment may need different configurations depending on where users are located. Treating the tool as automatically compliant is a mistake; correct configuration and legal judgment remain necessary in every case.

Who it's relevant to

Privacy and data protection officers
DPOs and privacy teams need visibility into which tags are deployed through the tag manager, what cookies or similar technologies they set, and whether non-essential tags are properly gated behind consent. Because the tool can deploy tracking without code changes, it can also introduce tracking that escapes privacy review unless governance processes are in place.
Marketers and analysts
These are often the primary users of a tag manager, using it to deploy analytics and advertising tags more easily than hand-coding each one. They benefit from understanding that ease of deployment does not remove consent obligations, and that tags for non-essential purposes generally must respect the user's consent state before firing.
Web developers and engineers
Developers typically implement the tag manager container and its integration with a consent management platform, including consent mode or trigger conditions. They are responsible for the technical correctness of the setup that ensures tags fire only when the applicable consent state permits.
Legal and compliance counsel
Counsel assess whether the tag manager's configuration aligns with the applicable legal framework, which differs across the EU, UK, and US state regimes. They provide the legal judgment about which tags require prior consent versus opt-out treatment, since the tool supports but does not guarantee compliance.

Inside TMS

Container
The central snippet of code deployed on a website or app that acts as a wrapper, allowing tags to be managed and deployed through the tag manager interface rather than being hard-coded individually into the site.
Tags
The individual pieces of code, such as analytics trackers, advertising pixels, or conversion tracking scripts, that the tool loads onto a page. Many of these tags set cookies or use similar technologies like pixels or local storage, which may bring them within the scope of the ePrivacy Directive and, where personal data is processed, the GDPR.
Triggers
The conditions or events, such as a page view, a click, or a form submission, that determine when a tag fires. Triggers can be configured to depend on a user's consent state so that non-essential tags do not fire before consent is obtained.
Variables
Reusable values referenced by tags and triggers, which may include consent status values passed from a consent management platform to control tag behaviour.
Consent mode or consent gating
Configuration that links tag firing to a user's consent choices, typically by receiving signals from a CMP. This is the mechanism through which a tag manager can help ensure that analytics, advertising, and other non-essential tags are only deployed after valid consent, where consent is required.

Common questions

Answers to the questions practitioners most commonly ask about TMS.

Does using a tag manager mean my site is automatically compliant with cookie consent rules?
No. A tag manager is a technical tool that helps you deploy, sequence, and conditionally fire tags; it does not by itself make your site compliant. Compliance depends on whether non-essential tags are genuinely blocked until valid consent is obtained, on the accuracy of your consent records, and on underlying legal judgments about which technologies require consent in the relevant jurisdiction. The tool supports compliance but does not replace legal analysis or a properly configured consent mechanism.
Is a tag manager the same thing as a consent management platform (CMP)?
Not exactly. A tag manager and a CMP serve different primary functions. A CMP is generally responsible for collecting, storing, and signalling a user's consent choices, while a tag manager governs the deployment and firing of tags such as analytics or advertising scripts. In practice the two are often integrated so that the tag manager only fires non-essential tags after the CMP indicates consent, but they are distinct components and one does not substitute for the other.
How can a tag manager be configured to prevent non-essential tags from firing before consent?
This is typically achieved by integrating the tag manager with a consent signal, so that tags categorised as non-essential (such as analytics or advertising) are held back until the consent mechanism reports an affirmative choice. Many tag managers offer consent-mode style controls, triggers, or blocking rules for this purpose. The specific configuration depends on the tool and your setup, and it should be tested to confirm that no non-exempt technologies place or access information on the device before consent, which is generally required in most EU jurisdictions.
Which tags loaded through a tag manager can fire before consent is collected?
Generally, only tags associated with strictly necessary or essential functions may fire before consent, consistent with the exemption that typically applies to such technologies under EU rules. Tags for analytics, advertising, or other functional purposes usually require prior consent in most EU jurisdictions. Because categorisation depends on the actual purpose of each tag, you should assess each one individually rather than relying on default labels, and note that requirements differ under frameworks such as US state privacy laws that often rely on an opt-out model.
How should consent choices be passed from a consent mechanism to the tag manager?
A common approach is for the consent mechanism or CMP to communicate the user's choices to the tag manager through a shared signal, data layer variable, or supported consent framework, which the tag manager then uses as a condition for firing tags. The exact method varies by tool and integration. Whichever approach is used, it is advisable to verify that the signal accurately reflects the user's choice per category and that changes or withdrawals of consent are honoured in subsequent tag behaviour.
What should be tested or documented when relying on a tag manager for consent enforcement?
It is generally advisable to test that non-essential tags do not fire before consent, that they fire only after the relevant category is accepted, and that withdrawal of consent stops the corresponding tags. Documentation may include the mapping of tags to consent categories, the blocking configuration, and evidence supporting consent record-keeping obligations. These steps support compliance but do not replace the underlying legal assessment of which technologies require consent and in which jurisdictions.

Common misconceptions

Installing a tag manager makes a website compliant with cookie consent rules.
A tag manager is a deployment tool, not a consent solution. It can support compliance by controlling when tags fire, but it does not obtain, record, or validate consent by itself. In most EU jurisdictions valid consent generally must be collected through a consent mechanism (often a CMP) before non-essential tags fire, and the tool must be configured correctly to respect that consent. No tool guarantees compliance, which ultimately depends on legal judgment.
The tag manager container itself is exempt from consent, so anything deployed through it is also exempt.
The consent analysis depends on what each individual tag does, not on the delivery method. Tags that set non-essential cookies or use similar technologies such as pixels, local storage, or fingerprinting are generally subject to the same ePrivacy consent requirements as they would be if hard-coded. Strictly necessary tags may be exempt, but analytics and advertising tags typically require prior consent under EU law.
If tags are configured to fire on a delay or after page load, no consent is needed.
Timing does not remove the consent obligation. Under the ePrivacy framework in most EU jurisdictions, prior consent is generally required before non-essential information is stored on or read from a user's device, regardless of when in the page lifecycle the tag fires. The relevant question is whether the tag operates before valid consent is given, not merely how quickly it loads.

Best practices

Map every tag deployed through the tag manager to its purpose and to the cookies or similar technologies it sets, and classify each as strictly necessary or non-essential to determine whether prior consent is likely required.
Gate non-essential tags behind consent by connecting the tag manager to a consent management platform, so that analytics, advertising, and functional tags only fire after valid consent is obtained where EU law requires it.
Configure triggers and variables so that tag firing reflects the user's specific consent choices per purpose, rather than treating consent as a single all-or-nothing signal.
Account for differing legal regimes: opt-in consent before firing is generally expected in the EU and UK for non-essential tags, whereas some US state frameworks rely on honoring opt-out signals such as Global Privacy Control, so configure behaviour by the user's jurisdiction where feasible.
Maintain records of tag configurations and consent-dependent firing logic to support consent logging and record-keeping obligations, and review them whenever new tags are added.
Test and audit the container regularly to confirm that no non-essential tags fire before consent and that changes made by marketing or development teams have not bypassed consent gating, recognising that the tool supports but does not replace legal review.