LW IT Solutions logo LW IT Solutions logo LW IT Solutions
« Blog Overview /Digital Analytics / GTM published: Which version does the website...
Read this article in other languages:

GTM published: Which version does the website load?

Metaphor: Only one of two lamps glows, like the single environment serving the observed version.GTM published: Which version does the website load?
Contents
  1. Three observations from one release
  2. Observe the page outside preview
  3. Match the environment to its assigned version
  4. Verify the same event again
  5. Three possible findings

A published GTM release contains the corrected tag, yet a shop still sends the old event. The container version assigned to the environment provides an important piece of evidence.

Three observations from one release

Consider fictional versions 41 and 42. The first uses an old event name. The second contains a correction. Tag Assistant preview already shows the new name, while a fresh browser profile on the production URL still sends the old one. The difference is reproducible. A workspace version label alone cannot explain which configuration reached that browser.

Observe the page outside preview

Open a fresh profile without a preview session. Record the host and path. Open the network panel before loading the page and find the gtm.js request. Identify each container separately if several load. For a first-party deployment, also inspect the configured delivery path. Record the container ID, host and presence of an environment parameter. Keep tokens and full preview URLs out of tickets.

Metaphor: Two separate devices show distinct states, like preview and a public page load.
Metaphor: Two separate devices show distinct states, like preview and a public page load. #

Match the environment to its assigned version

In the GTM administration screen, open Environments and record the version assigned to the intended destination. A staging environment snippet embedded on the production host can still load the staging version. Both environments may use the same container ID. Inspect the affected tag and trigger in the version history and compare versions 41 and 42.

Verify the same event again

Repeat the action at the same URL with the same consent choice in the fresh profile. The corrected test event verifies the observed result. Repeat on staging to document the separation. If the assigned version already matches, compare additional containers, consent and the triggering action. Loading a script alone does not establish that a tag fired.

Three possible findings

Only preview emits checkout_start_v2.
Exit preview and inspect the last version published to Live. Unpublished workspace changes may explain the result.
A fresh profile loads the staging snippet on the shop host.
Locate the snippet in the page template. If the template is shared, compare a second URL.
The correct Live version loads, but checkout_start_v1 still fires.
Trace the event to its initiating tag. A second container or a hard-coded tag can send the old event.

Inspect the version in the History tool · Google documentation on environments

Lukas Wojcik

Lukas Wojcik

Systems architect and technology enthusiast specializing in scalable tracking solutions, GMP Stack (GA4 & GTM), and robust backend architectures. Advocate for clean code and privacy-first design.

Get in touch

A question or an idea for a web project? Tell me a little about it. This form uses reCAPTCHA and formconfirmed to protect against spam.

Write a comment

Differing figures from other accounts and questions about the setup are welcome here.

The email address is not published. Required fields are marked with an asterisk.

LUKASWOJCIK.COM · NEWSLETTER

Fresh ideas in your inbox

New articles, practical tools and updates from the projects.

Choose topics (optional)
No selection: all topics.

Subscription starts after confirmation by email. · Privacy

Privacy · Newsletter

Email address, language, selected topics and subscription/confirmation dates are stored to deliver the newsletter. Double opt-in is required. Every issue includes an immediate unsubscribe link. Formconfirmed checks the signup for spam. No email open or click tracking.

Read the full privacy policy ↗