Skip to content

GTM Preview Works but Live Doesn’t? Verify the Published Version

Verify the web container, published environment and one analytics event outside Preview before changing your live triggers.

A clipped print proof with an orange marker next to its finished version
Jack Lee
3 Min Read
Share
On This Page

GTM Preview lets your browser run the workspace draft. Other visitors get the version published to the environment loaded by the page. If a tag works in Preview but fails outside it, check the container ID and published version before editing the trigger.

Compare the container and environment

Write down the tested page URL, container ID and expected event. In GTM’s Versions view, check which version is currently Live. If the page uses a custom environment snippet, verify the version published to that environment separately. Then open the production URL without the preview session. In the browser Network panel, filter for gtm.js and compare the request’s ID with your release record. A match identifies the container loaded on the page.

What you findNext check
Expected container is absent or another ID loadsCheck the live layout or integration that includes your GTM snippet.
Expected version appears only in Preview or in a test environmentReview the changes and confirm the version is published to the intended environment.
Expected version is live, but the event is absentCompare the page trigger, consent state and destination in a normal session.

On SEOWithJack, the site layout includes the GTM loader for production builds. The development-mode layout omits it. The loader in the packaged HTML confirms it was included in that build. Version and event checks still need the actual page you are testing.

Publish the tested version

Under Submit, review the workspace changes. Create Version saves a snapshot. To release workspace changes, choose Publish and Create Version and confirm the target environment. Keep the version name, what changed and the prior known-good version with your release record.

If your role allows you to save a version but another owner publishes, give them the version, target environment and expected test response. The GTM basics guide explains how tags, triggers and variables fit together.

Confirm one live event in a normal session

Open a new browser session without the preview link. In a worked example, a Malaysian training provider expects one brochure_click event when a visitor opens a brochure. In a fresh session, use the same consent choice as in your authorized preview test, click once, then check whether one request contains the expected event name and destination. Check GA4 Realtime in the intended property.

If the browser shows the request but the event is missing in GA4, use the event collection troubleshooting guide. If the release breaks live tracking, check the prior version under Versions. An authorized publisher can republish the earlier version if it still suits the current site.

Frequently asked questions

How can I tell if GTM is working on the live page?

Confirm the intended container loads outside Preview, then repeat one known action. Check that its event is sent to the expected destination once.

Does publishing to staging also publish to Live?

No. A custom environment has its own published version. Check the selection in the publish dialog.

Does Set as Latest Version roll back the live site?

That action replaces the container draft. To change what visitors run, publish the intended version to the correct environment.

Share This Article