Skip to content

Test and release a GTM change with a rollback record

Release a Google Tag Manager tracking change with a copyable test record, clear pass criteria, repeatable checks and a documented rollback procedure.

RunbookOctober 6, 20264 min read
~/runbook $ cat workflows.md[guide]
>_// Workflows
96 lines · workflows.md0xbc04

This sheet contains partner links. A purchase through one earns Runbook a commission at no additional cost to you. How we make money.

Before publishing a tracking change, write down how you will prove it works and which version you will restore if it fails. A tag firing once in preview is useful evidence, but your release check should also catch unwanted firing and confirm that Analytics receives the intended event.

This workflow covers one change to an existing Google Tag Manager web container: updating tracking for a demo button after a landing-page redesign.

Based on current documentation and editorial analysis. Not a hands-on product test. Sources were checked on October 6, 2026; the cited Google help pages show no publication dates. This is an evergreen procedure, not a new feature announcement.

Prepare the release record

You need an installed web container, an existing GA4 event tag and trigger, access to the destination GA4 property, and a person authorized to publish and restore versions. Google lists the installed container, tags and triggers as prerequisites for verification and publication.

Scope this procedure to browser tracking. Server containers and mobile apps need different debugging arrangements. Use a staging page with a test Analytics destination where available. Preview is not a promise that test events will stay out of reporting.

For this hypothetical example, the existing event is demo_cta_click. It measures a button click, not a completed inquiry. Keep that definition unchanged during the release.

Copy this record into your change ticket. All identifiers below are hypothetical; blank observations must be filled from execution.

Change: restore demo-button tracking after redesign
Container: GTM-EXAMPLE
Page: /request-demo
Event: demo_cta_click
Expected destination: [GA4 property and stream ID]
Current live version: [record before editing]
Candidate version: [record when created]
Rollback version: [verified compatible version]
Changed tag / trigger / variable: [names]
Browser and device: [record]
Consent state: [record]
Test timestamp and timezone: [record]
Expected event parameter: cta_location=hero
Observed tag firings: [blank]
Observed GA4 events and parameters: [blank]
Evidence location: [screenshots or notes]
Publisher / rollback owner: [names]
Decision: HOLD until every required check passes

The sheet and pass criteria below are editorial recommendations, not Google requirements.

Run the same checks before and after release

In the workspace, select Preview, enter the page URL and select Connect. Return to Tag Assistant to inspect firing order, triggers and data. Google documents this as a way to run the draft configuration before publishing it. Preview instructions.

Run this hypothetical acceptance matrix in both a desktop and a mobile browser:

ActionExpected demo_cta_click result
Load the page without clickingZero
Click the hero demo button onceOne, with cta_location=hero
Click an unrelated navigation linkZero
Reload the page without clickingZero
Return and deliberately click againOne additional event

Record each action separately. A deliberate second click is a new interaction; a second event from one click is a failure for this specification.

Then inspect the receiving system. In GA4, open Admin → Data display → DebugView, select your debug device and inspect the event parameters. Tag Assistant or preview mode can enable debugging for your device. Google also notes that privacy controls or missing Analytics consent can prevent events appearing there. DebugView documentation.

For the positive test, record the consent state that permits measurement. Check denied-consent behavior separately against your approved consent design; do not bypass it to make the test pass.

Publish only the reviewed change

Review Workspace Changes for unrelated edits. Use Submit → Publish and Create Version, name the release, describe the changed elements and confirm the intended environment. Create Version alone saves without publishing. Google’s publication guide.

Stop the draft preview session. Reconnect Tag Assistant to the published site without selecting the workspace draft, then repeat the matrix. Confirm the published version in GTM and retain both sets of observations. Hold downstream reporting sign-off until the receiving-system check passes.

Diagnose, replay or roll back

If the tag does not fire, inspect its trigger conditions and the values available at the click. If it fires twice, inspect the event sequence and other implementations sending the same event. If firing looks correct but GA4 is empty, check the destination, selected debug device and consent state before changing anything else.

After a correction, repeat the entire matrix with a new timestamp. Keep failed observations rather than overwriting them.

For rollback, open Versions, select the recorded recovery version and publish it. Set as Latest Version replaces the draft; it does not by itself restore the live configuration. Google distinguishes these operations in its version management documentation.

Check compatibility first: an older trigger may no longer match the redesigned page. Coordinate a page rollback or repair when necessary. Repeat the matrix after recovery and record the affected time window. Republishing a container cannot undo events already collected or recreate missed clicks.

Attach that incident window to your weekly marketing report, so a tracking fault is not interpreted as a change in customer demand.

About Runbook

AI tools and automation builds for marketers. What to use, how to wire it, and the workflow to copy this week. How we work

GET THE NEXT DISPATCH

Run the next build before your competitors read about it.

One short email when an AI tool or automation actually changes the work, with the build to copy.

No send unless there is a build worth running.

// keep_reading

Related builds