Sub topic 9
Verifying Data with Realtime Reports and DebugView
You should already have a Google Analytics 4 property, a web data stream, and its measurement ID. You also need access to edit the website or its tag manager setup. This chapter assumes that the GA4 tag is installed and that you can open the property in Google Analytics.
Realtime reports and DebugView
GA4 provides two useful ways to check data collection:
- Realtime reports show activity from users during the last 30 minutes. They answer, “Did GA4 receive this visit or event?”
- DebugView shows events from devices marked for debugging. It answers, “Did this specific test action send the expected event and parameters?”
Realtime is useful for a quick production check. DebugView is better when you are testing a new tag, event name, or parameter.
The normal verification path is:
Check a page view in Realtime
- Open your website in a new browser tab.
- Visit the page that contains the GA4 tag.
- In Google Analytics, select the property.
- Open Reports, then Realtime.
- Look for the active user and the page view or other recently received event.
The report can take a short time to update. Use the event list and page details to confirm that you are looking at your own test visit. If several people are visiting the site, your event may be difficult to identify.
Realtime confirms receipt, but it does not prove that every parameter is correct. Use DebugView for that level of inspection.
Send test events to DebugView
For a direct gtag.js installation, add debug_mode to the configuration while testing:
<script>
gtag('config', 'G-XXXXXXXXXX', {
debug_mode: true
});
gtag('event', 'sign_up', {
method: 'email'
});
</script>Replace G-XXXXXXXXXX with the web stream's measurement ID. In Google Tag Manager, use the platform's preview or debug mode instead. A CMS integration may provide its own testing option.
After loading the page and performing the action, open Admin, select DebugView, and choose the test device if more than one device appears. Select an event to inspect its name, timestamp, and parameters.
Troubleshoot missing data
| Symptom | Likely cause | Check |
|---|---|---|
| Nothing appears in Realtime | The tag did not load or the ID is wrong | Inspect the page source, browser network requests, and measurement ID |
| Realtime works but DebugView is empty | The event was not marked for debugging | Enable `debug_mode` or use tag-manager preview mode |
| The event appears with the wrong name | The implementation sends a different event name | Compare the configured name with the event shown in DebugView |
| Parameters are missing | The parameter was not included or was blocked | Inspect the event details and the tag configuration |
| Data appears only after consent | Consent settings prevent collection before approval | Test both consent states and document the expected behavior |
Consent banners, ad blockers, browser privacy settings, and filters can affect testing. Test in a clean browser session, but do not disable privacy controls for real users.
A repeatable verification checklist
- Confirm the measurement ID belongs to the intended web stream.
- Test a page view in Realtime.
- Test one meaningful action, such as
sign_up. - Inspect the event name and parameters in DebugView.
- Test the consent path required by your site.
- Remove temporary debugging settings.
- Record the verification date and the pages or actions tested.
Exercise
Realtime shows your page view, but DebugView shows no events. What should you check first?
Show answer
Check whether the browser or tag has a debug signal. Enable debug_mode for a temporary gtag.js test or use your tag manager's preview mode, then repeat the action.