Sub topic 13
Troubleshooting: why events do not show up
This chapter assumes you can open the GA4 Realtime report and DebugView, know what events, parameters and user properties are, and have editor access to the property or access to the site or app code. It gives you a fixed order of checks for the case where an event you expected is missing.
Start by naming the symptom
"Nothing shows up" covers several different problems. Decide which one you have before you change anything.
| Symptom | Where you looked | Most likely area |
|---|---|---|
| No data at all in Realtime or DebugView | Both | Tag not loading, wrong Measurement ID, blocked requests |
| Page views arrive, one custom event does not | Realtime | Trigger or event code, event name |
| Events appear in Realtime but not in DebugView | DebugView | Debug mode not enabled, wrong device selected |
| Events appear in DebugView but not in standard reports | Standard reports | Processing delay, filters, thresholds |
| Event appears, but a parameter is missing | DebugView event details | Parameter name or value, registration as a custom definition |
| Measurement Protocol events do not appear | Either | Payload errors, missing `debug_mode`, missing `client_id` |
Work from the network upward
Follow the path the data takes: the browser or app, then the network request, then Google's servers, then the report. Check each stage in order and stop at the first one that fails.
Stage 1: confirm the tag runs
Open the browser developer tools and go to the Network tab. Filter by collect. Reload the page and trigger the action. A working GA4 web tag sends requests to a URL that contains /g/collect.
If you see no requests, check these causes:
- The
gtag.jssnippet or the Google Tag Manager container is not on the page. View the page source and search for your Measurement ID, which looks likeG-XXXXXXXXXX. - The GTM container is not published. Preview mode runs the draft, but visitors get only the published version.
- A trigger does not fire. In GTM preview mode, open the event in the left panel and read the Tags Fired and Tags Not Fired lists.
- Consent settings block the tag. If you use a consent banner with Consent Mode, analytics storage may be denied until the visitor accepts. The tag can still send cookieless pings, but these are handled differently from normal hits.
- A script error earlier on the page stops your code. Check the Console tab for red errors.
If requests do appear but with a status other than 200 or 204, or they show as blocked, an ad blocker, browser privacy feature, corporate proxy or Content Security Policy (CSP) is the usual cause. A CSP is a response header that limits which domains a page may contact. It must allow the Google domains you use. Test in a clean browser profile with extensions turned off.
Stage 2: confirm the request carries the right data
Click one collect request and read its query string. Three fields matter most.
tidis the Measurement ID. If it is not the ID of the stream you are watching, the data goes to a different stream or property.enis the event name. Names are case sensitive, soSign_Upandsign_upare different events.- Parameters appear with the prefix
ep.for text andepn.for numbers.
When debug mode is on, the request also includes _dbg=1. If _dbg is missing, the event is not flagged for DebugView, and you need to fix debug mode rather than the event itself.
Stage 3: debug mode and DebugView
Realtime shows all traffic, but DebugView shows only events flagged as debug traffic. A missing event in DebugView with a healthy Realtime report points to the flag.
Check the following:
- The
debug_modeparameter is set totrueon the config command or on the event, as in this example:
gtag('config', 'G-XXXXXXXXXX', {
'debug_mode': true
});- If you use GTM, preview mode is connected to the same browser tab and the container you are editing.
- If you use the Tag Assistant or the Google Analytics Debugger extension, the extension is on for the tab you are testing in.
- In DebugView, the device selector at the top left is set to your device. DebugView lists several debug devices, and the first one is not always yours. Pick the one whose events match what you just did.
- For Android, the
adbproperty names the exact package and has not been reset. The property is cleared when the device restarts, so set it again:
adb shell setprop debug.firebase.analytics.app com.example.myappA package name with a typo gives no error. It just never matches.
Remember that DebugView shows events with a short delay and groups them on a seconds timeline and a minutes timeline. Wait about a minute and scroll the timeline before you decide an event is missing.
Stage 4: the hit reached Google but is filtered or misrouted
If the request is correct and debug mode is on, the problem is usually inside the property.
- Data filters. A filter in Admin under Data collection and modification, Data filters, can exclude traffic. An active Internal traffic filter drops hits from IP addresses you defined, including your own office. A filter in the Testing state only marks data, while one in the Active state removes it for good. Check the state of each filter.
- Developer traffic filter. The Developer traffic filter, when active, excludes events that have
debug_modeset from standard reports. These events still reach DebugView. So an event that appears in DebugView but never in standard reports may be excluded by design. - Wrong stream. Realtime is per property. If a property has a web stream and an app stream, check you are looking at the right property and that the Measurement ID in the code belongs to it.
- Unwanted referrals and cross-domain issues. These affect attribution, not whether an event arrives, so do not chase them when an event is missing entirely.
Stage 5: it arrived, but you cannot see it where you expect
Realtime covers about the last 30 minutes. If you check after that, events are gone from the cards even though they were collected. Standard reports lag behind. Many reports show data within a few hours, but processing can take up to 24 to 48 hours, so absent data on the same day is normal.
Other causes of "missing" data in standard reports:
- Date range. Check the range and the comparison settings.
- Report filters and comparisons. A comparison or filter applied earlier may still be active.
- Custom definitions. A custom event parameter appears in DebugView at once, but it appears in standard reports and Explorations only after you register it as a custom dimension or metric in Admin. Registration is not retroactive. Data starts to appear only from the point you register it.
- Data thresholds. When Google signals are on, GA4 may hide rows to protect privacy. This can make small counts look absent.
- Event name and parameter limits. Event names are limited to 40 characters, and parameter names to 40 characters. Parameter values are limited to 100 characters for standard properties. Names must start with a letter and contain only letters, numbers and underscores. Names that break these rules are dropped or truncated. Names reserved by Google, such as those starting with
google_,ga_orfirebase_, are also rejected.
Measurement Protocol events
Events sent from a server with the Measurement Protocol give no error to the sender. The collect endpoint accepts almost any payload and returns a success code, so a bad payload is silently discarded. Always test with the validation endpoint first. It returns validationMessages and does not record the event.
curl -X POST "https://www.google-analytics.com/debug/mp/collect?measurement_id=G-XXXXXXXXXX&api_secret=YOUR_API_SECRET" \
-H "Content-Type: application/json" \
-d '{
"client_id": "test.1234567890",
"events": [{
"name": "sign_up",
"params": { "method": "email" }
}]
}'An empty validationMessages array means the payload is valid. Read each message that appears. Common causes include a missing client_id, a wrong api_secret, and malformed JSON.
A valid payload sent to the debug endpoint is not stored, so it will not appear in Realtime or DebugView. To see an event in DebugView, send it to the normal /mp/collect endpoint with debug_mode set in the event's params. For a real session, include session_id and engagement_time_msec in the params. Without them, the event may not be linked to a session and some reports will not show it as expected.
A checklist you can reuse
Run these checks in order and stop when one fails.
- Open the Network tab. Is there a
/g/collectrequest when you trigger the event? - Is
tidthe Measurement ID of the stream you are watching? - Is
enspelled exactly as you expect, in the right case? - Does the request include
_dbg=1if you need DebugView? - In DebugView, is the right device selected?
- In Admin, are any data filters active that match your traffic?
- For standard reports, has enough time passed, and is the custom definition registered?
- For Measurement Protocol, does the debug endpoint return empty
validationMessages?
Exercise
You add debug_mode: true to your site, and the Realtime report shows your sign_up events. DebugView shows nothing. In the Network tab, the collect requests contain no _dbg=1. What is the most likely cause, and what do you check first?
Show answer
The events are being collected, but they are not flagged as debug traffic. Check that debug_mode is set on the exact config call or event that your page runs (for example, that the config snippet with the flag is the one that loads, not a second config call without it, and that the GTM tag has the debug parameter set). Reload and confirm _dbg=1 appears in the request, then select your device in DebugView.
Exercise
A developer sends a Measurement Protocol event to /debug/mp/collect. The response has an empty validationMessages array, but the event never appears in DebugView. Why, and what should they do?
Show answer
The debug endpoint only validates the payload and never records it. An empty array means the payload is valid. To see the event, send the same payload to the normal /mp/collect endpoint, with debug_mode set in the event params, and then open DebugView.