Sub topic 10
Verifying Enhanced Events with DebugView and Tag Assistant
This chapter assumes that you have a GA4 property, a web data stream, and the Google tag installed. You should also understand that GA4 events contain an event name and optional parameters. You should be familiar with the GA4 Admin interface and basic HTML or JavaScript.
Enhanced measurement events can appear in reports only after GA4 receives them. DebugView and Tag Assistant let you check the collection process first. This helps you separate a tagging problem from a reporting delay.
Use DebugView to inspect received events
DebugView is a GA4 report for events sent by devices in debug mode. It shows recent events and their parameters almost immediately.
To test an enhanced event:
- Open the correct GA4 property.
- Open Admin > Data display > DebugView.
- Open the website in the same browser and device that you are testing.
- Perform an interaction, such as scrolling to the bottom of a page or downloading a PDF.
- Select the event in DebugView.
- Expand its parameters and check their values.
For example, a scroll event may appear with the event name scroll. Its parameters can include percent_scrolled, page_location, and page_title.
Debug mode must be enabled for the test device. With gtag.js, you can enable it in the Google tag configuration:
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX', { debug_mode: true });
</script>Replace G-XXXXXXXXXX with the measurement ID for the web data stream you are testing. Do not leave debug mode enabled for every visitor unless you have a specific reason. You normally use it during testing or set it conditionally for internal testers.
The event list can take a short time to update. Standard reports and explorations take longer because they use processed, aggregated data. A missing event in a standard report does not prove that collection failed.
Use Tag Assistant to inspect tag execution
Tag Assistant helps you check whether the Google tag or Google Tag Manager tags run in the browser. It is useful when DebugView is empty.
For a Google tag or Google Tag Manager setup:
- Open Tag Assistant or the Preview mode in Google Tag Manager.
- Connect it to the test website.
- Accept the connection if the site opens in a new tab.
- Perform the interaction.
- Check whether the Google tag fired.
- Inspect the network or event details for the GA4 request.
Tag Assistant answers a different question from DebugView. Tag Assistant shows what the browser attempted to execute. DebugView shows what GA4 received as a debug event.
Troubleshoot a missing event
Check these causes in order:
- You are testing a different property or web stream than the one connected to the page.
- Enhanced measurement is disabled for that stream or for that event type.
- A browser extension, consent setting, or content security policy blocks the tag.
- The interaction does not meet the event's rules. For example, the built-in scroll event normally fires at 90% page depth.
- A single-page application changes content without producing the browser history event that GA4 monitors.
- You are looking for a custom parameter that has not been sent or registered correctly.
- DebugView is filtered because the browser is not sending debug information.
If Tag Assistant shows no tag activity, investigate the installation, consent state, or trigger. If Tag Assistant shows a request but DebugView remains empty, verify the measurement ID, debug mode, property, and network blocking.
Exercise
Tag Assistant shows that the Google tag fired, but DebugView does not show the file_download event. Name two checks you should make.
Show answer
Confirm that the test uses the correct GA4 property and stream, then check that debug mode is active and that the browser or consent settings are not blocking the GA4 request.