GTM's preview mode is your lifeline for debugging tags. When it doesn't work, you're flying blind. The debug panel spins forever, shows "Connecting...", or opens a blank tab. Sometimes it loads but shows zero tags firing. Let's fix all of these.
Problem 1: "Connecting..." Spinner That Never Stops
Cause: Browser extensions are blocking the debug connection.
Fix: Disable ALL browser extensions temporarily, especially ad blockers (uBlock Origin, AdBlock Plus), privacy tools (Privacy Badger, Ghostery), and VPN extensions. The fastest approach: open an Incognito window with extensions disabled (Chrome's default for Incognito), then retry preview mode.
Problem 2: Preview Opens But Shows No Tags
Cause: Your site URL in the preview doesn't match the container's target domain.
Fix: When clicking "Preview", make sure the URL field matches your actual site URL — including protocol (https://) and any www prefix. If your tag trigger conditions don't match the preview URL (e.g., you're testing on staging but triggers target production), adjust the triggers or test on the correct domain.
Problem 3: Blank Page After Clicking Preview
Cause: Pop-up blockers are stopping the debug window.
Fix: Chrome blocks pop-ups by default. Look for the blocked pop-up icon in the address bar and allow pop-ups from tagmanager.google.com. Alternatively, the preview debug panel has moved to tagassistant.google.com — make sure this domain isn't blocked by your network or extensions.
Problem 4: "Connected!" But Tag Assistant Shows Wrong Container
Cause: Multiple GTM containers on the page or cached debug session.
Fix: If your page has multiple GTM containers (e.g., yours plus a third-party marketing tool's container), Tag Assistant may connect to the wrong one. Check the container ID shown in the debug panel. Clear the debug session by clicking "End Preview" in GTM, clearing cookies, and starting fresh.
Problem 5: Preview Works in Chrome But Not Other Browsers
Cause: GTM preview relies on Chrome-specific features.
Fix: GTM preview mode is only officially supported in Google Chrome. While it may work in Edge or other Chromium browsers, always use Chrome for debugging. Ensure you're using the latest Chrome version.
Problem 6: Tags Fire in Preview But Not on Live Site
Cause: Container version not published.
Fix: Preview mode shows tags from your workspace (draft), not the published version. After confirming tags work in preview, you must click Submit to publish. Check the container version number — if your workspace version is higher than the published version, you have unpublished changes.
Problem 7: Content Security Policy (CSP) Blocking Debug Script
Cause: Your site's CSP headers block the Tag Assistant script.
Fix: Check your browser console for CSP errors mentioning tagassistant.google.com. You'll need to add *.google.com and *.googletagmanager.com to your site's script-src, connect-src, and frame-src CSP directives. This is only needed for debugging — don't loosen CSP in production more than necessary.
The Nuclear Option: Complete Reset
If nothing works, do a full reset:
- Click "End Preview" in GTM
- Clear all cookies and cache in Chrome
- Close all Chrome tabs
- Open a fresh Incognito window
- Log into GTM and click Preview again
- Enter your site URL manually
GTM Container Audit
Can't get preview mode to work? NiceLookingData audits your GTM container remotely — checking tag status, trigger configurations, and common issues without needing preview mode. Try it free.
Check your GTM container for free
Upload your GTM export or connect live. Our auditor checks 27+ best practices and gives you actionable fixes.
