Sub topic 11
A Step-by-Step Verification Workflow
Assume that you know GA4 events, event parameters, user properties, and data streams. You also need access to a GA4 property and to the website or app implementation. This workflow verifies one change at a time and separates collection problems from normal reporting delay.
1. Define the test before changing code
Write down the expected result:
- The event name, such as
sign_up. - The action that should trigger it.
- Required parameters, such as
method. - The data stream that should receive it.
- Whether the event is marked as a key event.
Use a test account or browser session. Record the expected event once, rather than clicking repeatedly and making the result difficult to interpret.
2. Enable debug mode
For a website using Google tag (gtag.js), add debug_mode to the configuration while testing:
gtag('config', 'G-XXXXXXXXXX', {
debug_mode: true
});This flags events from the page for DebugView. To debug only one event, put the flag on that event instead:
gtag('event', 'sign_up', {
method: 'email',
debug_mode: true
});Google Tag Manager preview mode and Tag Assistant can also identify web traffic as debug traffic. For an app, use the platform's analytics debug setting on the test device. Keep debug mode limited to development or testing.
3. Trigger the event once
Open the correct page or app screen and perform the action. Note the approximate time and the device or browser used. If the event depends on a user property, set that property before triggering the event.
Do not test from several devices at once. A single test device makes DebugView's device selector easier to read.
4. Check DebugView first for implementation detail
In GA4, open Admin > Data display > DebugView. Select your test device if several devices appear.
Inspect the timeline:
- The minute timeline shows recent activity grouped by minute.
- The second timeline provides a closer view of the selected minute.
- Select the event to inspect its parameters.
- Inspect user properties separately from event parameters.
Confirm the exact event name and values. A missing parameter, an unexpected value type, or an event sent to another stream usually points to an implementation problem.
5. Confirm arrival in Realtime
Open Reports > Realtime. Realtime shows activity from the last 30 minutes. Check the cards for active users, event counts, and key events. Filter or inspect the event list for the event you just triggered.
Realtime answers, “Is this activity reaching the property?” DebugView answers, “What exactly did this test device send?” Use both when validating a new implementation.
6. Keep test traffic out of reports
Configure the Developer traffic data filter in Admin so traffic marked with the developer parameter is excluded from reporting data. Test the filter in testing mode before activating it. Filters affect processed reporting data and may not remove data already collected.
7. Diagnose missing events
If DebugView is empty, check debug mode, consent, ad blockers, network requests, and the selected device. If DebugView shows the event but Realtime does not, wait briefly and confirm that you selected the correct property and stream. If Realtime shows the event but standard reports do not, allow for processing latency.
For automated checks, the Realtime Reporting API can query recent event counts. Measurement Protocol requests can be sent to /debug/mp/collect first; its validation response identifies payload errors without recording the event.
Exercise
You trigger sign_up, but DebugView shows it with no method parameter. What should you check first?
Show answer
Check the event implementation and confirm that method is included in the event payload with the expected name and value. Then trigger the event again and inspect the new event in DebugView.