Field Manual 07 · Learn it. Try it. Check it.
Just Enough Google Tag Manager to Get Your Tracking Working
Use tags, triggers, and variables to implement and verify a small website measurement change.
1. Know what each part does
A tag sends or processes information. A trigger determines when a tag should run. A variable supplies a value such as an event name or page path. A container holds the configuration you publish to a website.
For a registration flow, your application can announce that a registration succeeded. A Custom Event trigger responds to that announcement, and a GA4 event tag sends the chosen event to the correct property. GTM does not itself prove that a registration was saved.
2. Check the existing installation
Identify the container ID, who owns it, and how it is installed. Look for platform integrations and direct Google tags before adding new ones. Confirm that staging and production send data to their intended destinations.
Create a named workspace or record your starting version. Avoid publishing unrelated changes from another person’s workspace. Keep a description of the behaviour you intend to add and the version you can return to if it fails.
3. Use a deliberate application event
For an application you control, ask the developer to push an event after the server confirms success: window.dataLayer = window.dataLayer || []; window.dataLayer.push({event: 'registration_success', form_id: 'workshop'});
In GTM, create a Custom Event trigger for registration_success. Configure a GA4 event tag with the intended event name, such as generate_lead where that accurately describes the outcome. Connect it to the existing Google tag setup. Pass only approved parameters; never put form contents or emails into the data layer for analytics.
4. Preview the change and inspect the sequence
Open GTM Preview and connect Tag Assistant to the test page. Complete the action and inspect which event appeared, which trigger matched, what variables contained, and which tags fired. Preview can still send real analytics requests, so choose the test destination deliberately.
Test a successful save, validation error, server error, repeated click, and page reload. Confirm that failure paths do not emit a success event and that one success produces the intended count. Verify the destination in DebugView as well as Tag Assistant.
5. Respect consent and publish a named version
Test the site’s consent states and ensure the tag follows the intended measurement policy. Consent Mode and consent management are related configuration tasks; installing GTM does not establish either automatically.
When the checks pass, publish a version with a concise description of the event and trigger change. Repeat the core check on the live page because Preview is not the published container. If the release fails, restore the appropriate previous version and document why.
Field exercise
In a test container, connect a successful form event to one GA4 event tag. Save evidence from Preview and DebugView. Check one success and three failure or repeat cases, then write the version description and rollback reference.
Keep your working notes, evidence, and decisions together so you can review what changed after the exercise.
You are done when
- Container ownership and destination confirmed
- Trigger tied to actual success
- Variables contain approved values only
- Consent and failure cases checked
- Published version verified
Official references
Checked 7 November 2026. Product interfaces and settings can change; use these references for current details.