After Google Analytics 4 is set up, we need to debug and test to confirm whether the settings are correct or not. Google Analytics 4 provides a built-in real-time debugging mode ——DebugView.
Meet DebugView
DebugView is a built-in real-time debugging mode provided by Google Analytics 4.
You can monitor events through DebugView to debug data collection operations.
In GA4 click 「Admin」——「DebugView」
Three ways to enable DebugView
There are three ways to enable DebugView in GA4:
- Plugin in Chrome: Google Analytics Debugger
- Preview in Google Tag Manager
- Add debug_mode parameter
Plugin in Chrome: Google Analytics Debugger
You first need to install Google Analytics Debugger in Chrome, click the extension icon, and add the extension to the toolbar:
Open the page to be debugged, and then click Google Analytics Debugger, click it will display on, which means entering the debug mode
Return to DebugView, you can see that there is data in it, which means that you have successfully entered the debug mode.
Preview in Google Tag Manager
Click 「Preview」in the upper right corner of GTM to enter the debugging state. If you still don’t know how to debug, please see:New Preview Mode Google Tag Manager:Tag Assistant
Return to DebugView, if you see data in DebugView, it means you have successfully entered the debug mode.
Add debug_mode parameter
You can also enable debugging in DebugView by adding the debug_mode parameter.
Open the GA4’s tags and set the following settings in 「Fields to be set」:
If debug_mode is set to true, then you can preview and debug and see data in DebugView.
DebugView interface introduction
The interface of DebugView is as follows:
It can be divided into five parts:
- Debug Device(1): the device that is currently in the state of debugging and testing
- Minutes stream(2): display the number of events in 1 minutes, the value in the circle is the total number of events, once you click it, the second dynamic will display all the events in it
- Seconds stream(3) display the number of events in 1 seconds, and the value in the circle is the total number of events
- Top Events (4): Events triggered in the past 30 minutes
- User Properties Active Now(5): User Properties triggered in the past 30 minutes
Debug Device
Display the device currently entering the test state,If there are multiple devices, you can select them by going down.
Learn more:
Minutes stream
There are multiple circles in the Minutes stream, each circle represents 1 minute, and the numbers in the circle represent the number of events within 1 minute:
Click any circle at will, and the Seconds stream will be displayed on the right.
Seconds stream
Displays events and recorded times for the past 60 seconds.
Click any event to view related parameters:
Such as event parameters and user Properties.
Top Events
Top events recorded during 30 minutes:
User Properties Active Now
User Properties triggered now:
If you want to see the alarm clock in the past 30 minutes, click the alarm clock symbol in the upper right corner.
Debug Case