Sub topic 7
Checking Your Data in DebugView
Before starting, assume you know what a GA4 event is and can open the correct property and web data stream. You should also be able to edit either gtag.js or a Google Tag Manager configuration.
DebugView is a GA4 tool for checking events from a test device almost immediately. It helps you verify that an event reached GA4 and that its parameters have the expected names and values. DebugView does not register a parameter as a custom dimension or metric. It only confirms that GA4 received the data.
Turn on debug mode
GA4 shows a device in DebugView when its events include debug mode. With gtag.js, add debug_mode: true to the event while testing:
gtag('event', 'select_plan', {
plan_tier: 'pro',
billing_cycle: 'annual',
debug_mode: true
});The debug_mode parameter is a control parameter. It tells GA4 to make the event available in DebugView. Do not leave it enabled in production traffic unless that is intentional.
If you use Google Tag Manager, open the container in Preview mode and test the page. A GA4 Event tag fired through the preview session normally sends the event as a debug event. You can also add a debug_mode event parameter to the tag when you need explicit control.
Open Admin > Data display > DebugView in the same GA4 property that receives the event. Select the test device if several devices appear. Then trigger the event again. The event should appear in the event stream.
Read an event in DebugView
Select an event name to inspect its details. Check each of these parts:
- The event name is spelled exactly as intended.
- The event appears on the expected data stream.
- Each parameter uses the intended name, such as
plan_tier, rather than a similar name such asplanTier. - Values have the intended type. For example,
4is numeric, while"4"is text. - Repeated events do not contain accidental duplicate or stale values.
- User properties appear under the user information for the debug device when they are sent.
A parameter appearing in DebugView proves that GA4 received it. It does not prove that the parameter is available in historical reports. You still need to register a custom dimension or metric, and GA4 may need additional processing time.
A practical validation workflow
Use this sequence for every new custom definition:
If no event appears, first confirm that the page uses the expected measurement ID. Then check the browser network requests, tag trigger conditions, consent settings, and debug mode. A browser ad blocker or incorrect property selection can also hide the expected result.
If the event appears but a parameter is missing, inspect the tag or JavaScript object that creates the event. If the parameter has the wrong value, test the source data before changing the GA4 registration.
DebugView is best for implementation checks. Use standard reports, Explorations, or the Data API later to confirm that a registered definition is usable after processing.
Exercise
You send video_complete with video_length_seconds: "184" and see the event in DebugView. What should you check before registering this value as a custom metric?
Show answer
Check that the value is sent as a number rather than text, that the parameter name is correct, and that the metric's unit will be appropriate for seconds.