GTM Preview Mode
GTM Preview Mode is a built-in feature of Google Tag Manager that lets you test how tags behave on your website before publishing changes live. It allows you to browse your own site as if an unpublished container version were already active, so you can check that tags fire as intended. This is a testing and debugging tool and does not by itself address whether your tags comply with cookie consent requirements.
GTM Preview Mode is a testing and debugging environment within Google Tag Manager that lets practitioners inspect the current container draft against a live site or server endpoint without publishing it. For web containers, the current Tag Assistant-based experience runs in a detached interface and connects to the previewed page, allowing inspection of the data layer, triggered events, and which tags fired, did not fire, or were blocked. For server-side containers, preview and debug mode allows inspection of incoming HTTP requests and how they are processed by the server container. In practice, preview activation is associated with a debug parameter (for example, a GTM preview/debug flag) that signals debug behavior. Preview Mode is a technical verification tool; it can help confirm that tags behave in accordance with configured consent conditions, but it does not itself constitute or verify legal compliance with cookie consent obligations, which depend on separate legal and CMP configuration factors not covered by this feature.
Why it matters
For teams responsible for cookie consent, GTM Preview Mode is one of the primary ways to verify that tags actually behave as intended before changes reach real users. Because tags loaded through a tag manager can set cookies or transmit data, the difference between a tag that is properly gated behind consent and one that fires unconditionally is significant. Preview Mode lets practitioners observe, on their own site, which tags fired, which did not fire, and which were blocked, so that misconfigurations can be caught during testing rather than after a container is published live.
That said, Preview Mode is a technical verification tool and not a compliance guarantee. It can help you confirm that a tag respects the consent conditions you have configured, but it does not assess whether those conditions themselves satisfy applicable legal requirements. Under the EU ePrivacy rules governing the placing of and access to information on a device, and under the GDPR where personal data is processed, the lawfulness of a given tag depends on factors such as consent categorization, CMP configuration, and the legal basis relied upon, none of which Preview Mode evaluates. Requirements also differ across jurisdictions, for example between the EU, the UK, and individual US states, so what Preview Mode shows about tag firing is only one input into a broader compliance assessment.
Used carefully, Preview Mode reduces the risk of tags firing before consent is captured or in ignorance of a user's choices, which is a common source of compliance problems in most EU jurisdictions. It is most valuable when combined with an understanding of how your consent management platform signals consent to GTM and how each tag is configured to respond to those signals.
Who it's relevant to
Inside GTM Preview Mode
Common questions
Answers to the questions practitioners most commonly ask about GTM Preview Mode.

