SaTracking
PlatformsNEWIntermediate

Debug an event with GTM Preview and Tag Assistant

Trace one test action through the GTM event timeline, trigger, variables, and tag before publishing a container version.

Download for AI (.txt)

Measurement topic illustration · SaTracking

Audience and prerequisites

Connect Preview to the right container, trigger one repeatable action, and read the event, tag and variable timeline before publishing. You need access to the container and a repeatable test action on a site where Preview can connect. Skill level: intermediate. Reading time: seven minutes.

1. Start Preview on the right container and page

In GTM, open the intended container and choose Preview. Enter the exact test-page URL and connect Tag Assistant. Confirm the container ID and page URL shown by the session. If the wrong workspace, container, environment, or site is connected, stop and reconnect before interpreting the events.

2. Perform one action and inspect the timeline

Complete one controlled action, such as a successful form submission. Select its event in Tag Assistant's timeline. Check the event name, values in the data layer, and ordering relative to page load and other events. For a custom data-layer event, verify that the application pushed the event key that the container listens for.

3. Check trigger, variables, and tag separately

For the selected event, inspect which triggers matched and which tags fired or did not fire. Open the tag's details and check resolved variables and destination settings. A trigger can match while a tag is blocked by an exception, consent state, or tag configuration. A tag can fire with an empty value if a Data Layer Variable name or event timing is wrong.

Repeat with a negative case: an invalid form, canceled checkout, or other action that should not count. The success event and its conversion tag should remain absent. If a tag fires more than once, inspect multiple matching triggers, repeated callbacks, page reloads, and duplicate container/tag installations.

4. Save evidence, then validate destination receipt

Record the page, container/workspace, test action, consent state, observed event, trigger result, variable values, and tag result. Fix the cause in the workspace, repeat Preview, and submit a container version only after expected and negative cases pass. Preview proves the behavior observed in that session, not what is currently published for all visitors.

For a Google Analytics destination, check DebugView in the correct property after Tag Assistant shows the tag behavior. For another vendor, use its own testing or diagnostics interface. A browser request or a GTM “fired” status does not establish that the provider processed or attributed the event.

Privacy and common fixes

Use synthetic test data. Do not enter real customer details into a test form or send them as parameters. Follow consent requirements in both positive and negative tests. If no events appear, check blockers, the page URL, installed container ID, and Preview connection. If values are stale, inspect event order and the application's data-layer updates. If behavior differs between Preview and production, verify the published version and environment instead of assuming Preview changed the live container.

After Preview, follow the GA4 end-to-end validation guide if the destination is Analytics. The browser audit provides a separate view of browser-visible signals.

Official references

EDITORIAL HISTORY

What changed

  1. v1.0.0
    Initial bilingual guide drafted and verified against linked official Google documentation.
MEASUREMENT SUPPORT

Need a hand with your tracking?

Nicolas Salazar works with teams on analytics, tracking plans, data quality, consent, and implementation.