Sub topic 1
The Realtime Report and DebugView in GA4: The Data You Are Verifying
Prerequisites
This chapter assumes you can open a GA4 property and its Admin area. You should understand GA4 events, event parameters, and user properties. You need a property with a web or app data stream, plus editor access or access to the site or app code so you can test changes.
The data you are verifying
GA4 records everything as an event. An event has a name, such as page_view or sign_up. Events can carry parameters that add detail, such as method: "email". User properties describe the user, such as a plan type. A data stream is the source that sends events to a property. Each web or app platform has its own stream.
gtag('event', 'sign_up', {
'method': 'email'
});This call sends one event named sign_up with one parameter. Verification means confirming that the event name, parameters, and user properties arrive exactly as you coded them.
The Realtime report at a glance
The Realtime report shows activity from the last 30 minutes. Events usually appear within seconds of being sent. Use it to confirm that traffic is flowing soon after you deploy a change.
Reading the Realtime cards
The report is made of cards. The user card shows active users in the window. The event count card lists each event name with its count. The key events card shows events you have marked as key events. Compare these numbers with what your test should have produced.
Time window, latency and why Realtime differs from standard reports
The 30-minute window
Realtime reads only recent data. Standard reports cover longer periods and process data before showing it. New data can take hours to appear there.
What this means for troubleshooting
A missing event in a standard report does not prove that tracking failed. Check Realtime first. Standard reports also apply processing rules, so their totals will not match Realtime exactly.
Debug mode: how events are flagged for DebugView
Debug mode marks events so DebugView can display them. On a website, setting debug_mode: true in the config call flags every event from that page load. You can also add it to a single event. DebugView shows flagged events in a step-by-step timeline, which makes it the better tool for inspecting individual events. The next chapter covers DebugView.
Exercise
A new purchase event does not appear in the standard Events report one hour after you deployed it. What should you check first, and why?
Show answer
Check the Realtime report for the purchase event. Standard reports process data over a longer period and can take hours to show new events. If the event appears in Realtime, the tracking works and the delay is normal processing time.