Guide · Tracking and analytics
How to use Google Tag Manager preview mode, and what to do when it won't connect
By The Microployed teamUpdated 5 min read
The short answer
Google Tag Manager preview mode lets you test the unpublished changes in your workspace on your real site: click Preview, enter your URL, click Connect, then use your site and watch Tag Assistant show which tags fired at each event. Visitors never see it. If it won't connect, the usual causes are a container missing from that page, an ad blocker or extension, or a site that breaks with the debug parameter.
The steps, about 10 minutes
Step 1: Open your workspace
In Tag Manager, open the container and stay on the Workspace tab, which holds your unpublished changes.
Step 2: Click Preview
Click Preview in the top right. Tag Assistant opens in a new browser tab.
Step 3: Enter your site's URL and connect
Type the exact page you want to test and click Connect. Leave Include debug signal in the URL ticked unless your site breaks with it.
Step 4: Confirm the site shows Connected
Your site opens in a new window, or a new tab if you have the Tag Assistant extension, with Connected in the bottom right corner.
Step 5: Return to Tag Assistant and click Continue
Go back to the Tag Assistant tab and click Continue to open the debug view.
Step 6: Do the action you want to test
In the site window, click the button, submit the form or place the test order your tag is meant to track.
Step 7: Check the matching event
Select that event on the left of Tag Assistant and look at the Tags tab to see whether your tag fired.
Step 8: Close preview and publish
Click the X in the upper-left corner to exit, then submit and publish the version in Tag Manager once the test passes.
What preview mode actually does
Preview mode runs the changes in your current Tag Manager workspace on your live site, but only for you, so you can see which tags fire before any visitor is affected. Google's help page says the debug view is visible only in the browser where you started preview, or to people you share a preview link with, while everyone else keeps getting the last published version of your container.
That second point explains a lot of confusion. An edit in Tag Manager doesn't reach your site until someone clicks Submit and publishes a new version, so if you changed a tag and nothing happened on the site, the change is probably still sitting in your workspace. Preview is the safe place to check that edit before you publish it.
How to read the Tag Assistant screen
Tag Assistant lists events down the left side, grouped by page and numbered in the order they happened, and the panel on the right shows what happened at whichever event you select. The first few events come from the page loading, and later ones come from clicks, form submits or anything your site pushes to the data layer, such as an add-to-cart or a purchase.
When you select an event, the Tags tab separates the tags that fired on that event from the ones that didn't. For most checks that's the only answer you need: find the event that matches what you just did on the site, then see which group your tag landed in. If you're testing a purchase tag, you're looking for the event your checkout sends when an order completes, not the page view that loaded the thank you page.
The other tabs worth checking
- Variables shows the value each variable had at the selected event, which is where you'll spot an order value that came through blank or a currency that says
undefined. - Data Layer shows the exact message your site pushed for that event, so you can compare what the site sent against what your tag expects to read.
- Output lists the hits that were sent, data layer updates and errors. Clicking a hit under
Hits Sentopens the parameters that actually went out. - Summary is the default view. If more than one Google tag or container is on the page, pick yours there so the other containers don't clutter the list.
Why a tag shows up as not fired
A tag lands in the not-fired group when its trigger didn't match the event you selected, so first make sure you're looking at the right event. A tag that waits for a form submission will show as not fired on every page view event, and that's correct behavior rather than a bug.
If you're on the right event and the tag still didn't fire, open the tag in your workspace and compare its trigger with what the Variables and Data Layer tabs show. The mismatches we see most often are a custom event name spelled slightly differently from what the site pushes, a page path condition that doesn't match the page you tested, and a consent tool that holds Google tags back until the visitor accepts. Google's troubleshooting page specifically calls out consent management tools as something that can block tags, so accept the cookie banner during your test if your site has one.
When the tag fired but your reports still look wrong, the problem has moved downstream. Check the hit in Output for the right parameters, then follow the platform side, for example our guide on why GA4 shows zero conversions.
What to do when preview won't connect
Preview usually fails to connect because Tag Assistant can't find the container on the page you entered. Google's Tag Assistant help lists these causes, and working through them in order solves most cases:
- The container isn't on that URL. Preview only works on pages that load your published container snippet, so check the exact page, including www or no www. If the tag loads late, click
Retry. - An ad blocker or extension is stopping the tag. Turn off ad blockers and other extensions for the site you're testing, then try again.
- The debug parameter breaks your site. Tag Assistant adds a debug signal to the URL, and some sites redirect or error because of it. Edit the URL and untick
Include debug signal in the URL. - Several redirects happen before the page loads. Enter the final URL you land on instead of the one that redirects.
- A Content Security Policy, firewall or proxy blocks Google's scripts. This one needs whoever manages your site or network to allow the Google tag.
- Your tags run inside an iframe. Google says iframe tags can only be debugged with the Tag Assistant Chrome extension installed.
Shopify stores that load Tag Manager as a custom pixel
If your store adds Tag Manager as a custom pixel under Shopify's Customer events, Tag Assistant won't see it at all. Shopify's own help page says the Troubleshoot tag feature isn't compatible with custom pixels and doesn't detect Google tags there, and recommends the Shopify Pixel Helper to confirm your events reach the pixel sandbox without errors. Our Tag Manager install template covers both setups if you're not sure which one your store uses.
Sharing preview with someone who's helping you
You can send a preview to a freelancer or colleague without giving them anything new in your account. In Tag Assistant, open More Actions, choose Share, enter the domain you want them to test, and copy the link. The shared link only works on the domain you entered, which is a useful safety check when a site has a staging copy on a different address.
When everything looks right, close preview with the X in the upper-left corner of the debug screen, then go back to Tag Manager and publish the version. Give it a name that says what changed, so the next person who opens the container can tell which version added which tag.
Short on time? Hand this one off.
Post it as a small job and a pro who knows Google Tag Manager picks it up, with the price set before anyone starts. Businesses in the beta get credits to try it.
Post this as a job on MicroployedThe next level up
Get every tag in your container checked before your next big sales week
Preview tells you whether one tag fires, but most containers hold years of tags nobody remembers adding, and duplicates or stale triggers quietly skew your numbers. A container audit tests each tag in preview, removes what's unused or duplicated, and leaves you with named versions and a short list of what each tag does.
Post the container audit jobQuestions people ask
Does Google Tag Manager preview mode change my live site?
No. The debug view only appears in the browser where you started preview, or for people you share a preview link with. Visitors keep getting the last published version of your container until you publish a new one.
Why does my site look broken in preview mode?
Tag Assistant adds a debug parameter to the URL, and some sites redirect or error when they see it. Edit the URL in Tag Assistant and untick Include debug signal in the URL, then connect again.
Why can't Tag Assistant find my Google tag on Shopify?
If Tag Manager is installed as a custom pixel in Shopify's Customer events, Tag Assistant can't detect it. Shopify recommends testing with the Shopify Pixel Helper instead.
How do I share Tag Manager preview with a freelancer?
In Tag Assistant, open More Actions, choose Share, enter the domain to test and copy the link. It only works on the domain you entered.
Do I need the Tag Assistant Chrome extension for preview mode?
Not for an ordinary page, but with it your site opens in a new tab instead of a new window, and Google says it's required to debug tags that load inside an iframe.
Sources
Checked against these pages on .
- Preview and debug containers (Tag Manager Help) (opens in a new tab)
- Previewing and debugging, UK English edition (Tag Manager Help) (opens in a new tab)
- Find your way around Tag Assistant (Tag Manager Help) (opens in a new tab)
- Troubleshoot with Tag Assistant (Tag Assistant Help) (opens in a new tab)
- Create a Google Tag Manager custom pixel (Shopify Help Center) (opens in a new tab)