Cookie preferences

Choose which optional cookies EndFrame may use on this site. Analytics and advertising tools load only if you allow them, and you can change your mind any time from “Cookie settings” in the footer. Whatever you choose, this tab keeps the campaign labels from the link that brought you, and they are saved with your account if you sign up. Read the Cookie Policy.

Needed for the site to work, such as remembering this choice. Always on.

Lets us load analytics tools through Google Tag Manager, including Google Analytics and Microsoft Clarity session recordings, to understand how the site is used.

Allows advertising tags to measure our ad campaigns. None run on this site today. It also keeps ad click IDs from the page address for this tab, and saves them with your account if you sign up.

Skip to main content

GTM Preview Mode Not Working? Why Tag Assistant Will Not Connect and How to Fix It

A fix-first guide for when Google Tag Manager preview mode will not connect. Learn how preview works today, how to tell a connection failure from a tag that does not fire, and the order in which to check each cause.

The EndFrame Team7 min read

When Google Tag Manager preview mode is not working, Tag Assistant is almost always failing to find your container on the page it opened. The container snippet is missing, has a different GTM- ID from the container you are editing, or is being stopped before it runs by an ad blocker, a strict browser, a consent tool or the site's Content Security Policy. Tag Assistant rarely tells you which. It shows a general failure, and users report messages such as "A timeout occurred while attempting to connect". This guide gives you a five-minute order to check the causes, the fix for each, and what to do when preview does connect but your tag still does not fire.

How GTM preview is supposed to work

Knowing the normal flow makes it easier to see where yours breaks. According to Google's Tag Manager Help, the steps are:

  1. 1Open the container at tagmanager.google.com and, in the Workspace tab, click Preview at the top right. Tag Assistant opens in a new tab at tagassistant.google.com.
  2. 2Enter the URL of the page you want to test.
  3. 3Leave Include debug signal in the URL ticked unless your site breaks with it (more on this below).
  4. 4Click Connect. Your site opens in a new window and shows a Connected badge in the bottom right corner. With the Chrome extension installed, it opens in a new tab instead.
  5. 5Go back to the Tag Assistant tab and click Continue to open the debug interface.

Two details cause a lot of confusion. First, the debug interface appears only in the browser where preview was started, or for people you share it with. Copying the site URL into another browser or a private window does not carry the session across. Second, Google's Help page says that with the Tag Assistant Companion Chrome extension installed, your site opens in a new tab instead of a new window. Companion's Chrome Web Store listing, published by Google, says it is being retired and that its features are moving into the main Tag Assistant extension, so install Tag Assistant if you want this behaviour. Either way the extension is optional: Google's announcement page says Tag Assistant is designed to work without third-party cookies or extensions.

First decide which problem you have

"Preview not working" covers three different failures. Fixing the wrong one wastes the afternoon, so match your symptom first.

What you seeWhat it meansWhere to look
Tag Assistant waits, then reports a timeout or could not connect, and no Connected badge appears on the siteTag Assistant never reached your containerThe checks in this article
It connects, but your new tag or change is missing, or the wrong container is listedYou are previewing a different container, workspace or environmentThe container selector at the top left of Tag Assistant, and the workspace you clicked Preview in
It connects, but the Tags tab lists your tag among the tags that did not fire on that eventPreview works. The trigger or its conditions do not matchThe Tags tab for the event where you expected it to fire, then the trigger conditions

If you are in the second or third row, preview is doing its job. Our guide to tracking button clicks in Google Tag Manager walks through reading triggers and variables in the debug interface, and testing with GA4 DebugView covers the next step, checking what GA4 received.

The five-minute check order

Work through these in order. They run from the most common cause to the least, and each takes a minute or less.

  1. 1Open the page you are testing, view the source, and search for GTM-. Confirm the snippet is there and that its ID matches the one shown at the top of your Tag Manager workspace.
  2. 2If the container has never been published, publish a first version. Analytics Mania lists publishing the container as one of its fixes, even for a container that is not new.
  3. 3Turn off ad blockers and privacy extensions for the site, or open a fresh browser profile with no extensions, and click Retry in Tag Assistant.
  4. 4Allow pop-ups and redirects for tagassistant.google.com, or install the Tag Assistant extension so the site opens in a tab.
  5. 5If you use a browser with built-in tracking protection, such as Brave, test in Chrome with no extensions to rule the browser out.
  6. 6Untick Include debug signal in the URL if the page errors, shows a 404 or redirects with it on.
  7. 7Open the browser console on the site and look for Content Security Policy errors that mention googletagmanager.com or tagmanager.google.com.
  8. 8If none of that works, share the preview link and ask a colleague to open it in their browser. If it connects for them, the problem is in your browser setup, not the site.

Each cause and its fix

The snippet is missing or carries a different ID

This is a common cause on new sites and after a redesign. A theme update, a landing page builder or a staging copy may not include the snippet, or may include an old container from a previous agency. Analytics Mania also lists snippets pasted through a word processor, which turns straight quotes into curly ones and breaks the code, and script optimisers such as Cloudflare Rocket Loader, which change how gtm.js loads. Our pixel inspector fetches a public page and lists the tags in its initial HTML with their IDs, which shows whether a Tag Manager container is in the page code and which ID it uses. It cannot see a container injected later by another script, and it cannot see preview state or events.

Ad blockers, privacy extensions and strict browsers

Google's troubleshooting page says ad blockers can stop the Google tag from running and suggests disabling them, and any extension that might block tags, for the pages you test. When a blocker stops gtm.js loading, there is no container for Tag Assistant to find. Brave's Shields are reported to cause the same failure, and Analytics Mania suggests either turning Shields off for the site or using another browser for Tag Manager work. If you want to understand why, our explainer on how ad blockers work covers what they target.

Pop-up blocking

Without an extension, Connect opens your site in a new window. If the browser blocks that window, nothing connects. Allow pop-ups and redirects for tagassistant.google.com, or install the Tag Assistant extension so the site opens as a tab.

The debug signal breaks the page

By default Tag Assistant adds a debug parameter (_dbg, according to Google's troubleshooting page) to the URL it opens. Sites that do not accept unknown parameters may return an error, show a 404 or redirect to a clean URL, which drops the parameter. Google's Help page says to untick Include debug signal in the URL if your site or pages break. Google also notes that several redirects in a row can stop the debug window loading, so test the final URL rather than one that redirects.

Content Security Policy, consent tools and late loading

A Content Security Policy (CSP) is a header that lists which domains a page may load scripts, styles and images from. Google's CSP guide says preview mode needs tagmanager.google.com allowed alongside googletagmanager.com, plus fonts.googleapis.com, fonts.gstatic.com, ssl.gstatic.com and www.gstatic.com for styles, fonts and images. Send that list to your developer. A consent tool that blocks Google tags until someone accepts can also hide the container, so accept consent on the site before connecting, and see our guide to Google Consent Mode v2 for the longer-term setup. Finally, if the container loads late, after Tag Assistant tries to connect, Google's advice is to click Retry.

Old advice about third-party cookies and incognito

Many guides still tell you to allow third-party cookies. That advice dates from the old preview mode, which used third-party cookies to load the draft container. Simo Ahava's June 2020 fix for Chrome's incognito mode, which blocks third-party cookies by default, works by allowing a cookie on googletagmanager.com, so it belongs to that version. Google's announcement says the previous preview mode no longer works without third-party cookies, and that Tag Assistant, which replaced it, is designed to work without them. Incognito still trips people up for a different reason: the debug session belongs to the browser that started it, and a private window does not share it. If you want a clean test in a private window, start Tag Assistant inside that private window, or open a share link there.

Share the preview when your own browser is the problem

In Tag Assistant, click More actions and select Share. The Share debug session dialog asks for the target domain, then gives you a preview URL to copy. Send it to a colleague, or open it in another browser yourself. To preview an older version instead of the workspace, go to Versions, click More actions on the version and choose Share Preview. Sharing is the quickest way to separate a site problem from a browser problem: if it connects elsewhere, your extensions or settings are at fault.

What preview cannot debug

  • AMP containers: you can preview the site, but there is no debug interface.
  • Mobile app containers: no debug interface. Google points to the iOS and Android developer documentation instead.
  • Server containers: these have their own preview, with different tabs, described in a separate Google developer guide.
  • Tags inside an iframe, such as an embedded booking form: these can be debugged only with the Tag Assistant extension installed.

Once preview connects reliably, it is a good moment to tidy the container itself. Our Google Tag Manager audit checklist walks through what to review once you can see what each tag does.

Frequently asked questions

Do I need the Tag Assistant Chrome extension for GTM preview?

No. Google says Tag Assistant is designed to work without third-party cookies or extensions. The extension still helps: with it, your site opens in a tab rather than a separate window, and it is required to debug tags that load inside an iframe, such as an embedded booking form. The older Companion extension is being retired and its features moved into Tag Assistant.

Can a website visitor see my GTM preview changes?

No. The debug interface and the draft version of your container load only in the browser that started the preview, or for people you send a share link to. Ordinary visitors keep receiving the last published version. Nothing you change in a workspace reaches them until you click Submit and publish a new version.

Why does GTM preview connect on one page but not another?

Usually because the second page does not load the container, or loads it differently. Templates often differ: a checkout, a landing page builder or a blog on a subdomain may use its own head code without the snippet. A redirect chain on that URL can also stop the debug window loading. Enter the exact URL that fails and check its source.

How do I turn GTM preview mode off?

Click the X in the upper left corner of the Tag Assistant debug interface, or click Stop debugging on the Tag Assistant activation page at tagassistant.google.com. Ending the session from one of those two places is cleaner than just closing tabs. Real visitors are unaffected either way, because the debug interface only appears in browsers where preview was enabled.

Try EndFrame

Add a server-side path for your conversions.

EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.

No credit card required

Keep reading