Sub topic 12
Troubleshoot When No GA4 Data Appears
Assume you already have a GA4 property, a web data stream, and access to the website or its tag-management system. You should also know how to open the browser developer tools and identify a script tag in a page.
When GA4 shows no data, troubleshoot from the page outward:
- Is the Google tag present?
- Is it configured with the correct Measurement ID?
- Did the browser allow the tag to send data?
- Did GA4 receive the request?
- Are you viewing the correct report or property?
Check the installation
Open the exact page where you expect tracking to run. View the page source or inspect the loaded document. Search for your Measurement ID, such as G-ABC1234567.
If the ID is missing, the tag may not be installed on that template, the integration may be disabled, or a Tag Manager container may not have been published. If the ID appears only in an unpublished preview or staging version, it will not track the production site.
The Google tag should load from googletagmanager.com. A manually installed tag should also contain a gtag('config', ...) call:
<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 the placeholder with the Measurement ID from the same web data stream you are inspecting. Do not copy an ID from another property, environment, or data stream.
Use the right verification tools
Use Tag Assistant when checking whether Google tags load and which configuration they use. If the site uses Google Tag Manager, enter Preview mode and confirm that the GA4 tag fires on the page view.
Use the GA4 Realtime report to confirm that a test visit reaches the property. Realtime data often appears before standard reports. To inspect events from your own browser, enable debug_mode in the tag or use Google Tag Assistant, then open DebugView in the GA4 interface.
| Observation | Likely cause | Next check |
|---|---|---|
| No tag in Tag Assistant | Missing, unpublished, or blocked installation | Page source, integration settings, or container version |
| Tag loads but no Realtime user appears | Wrong ID, consent denial, or blocked request | Measurement ID, consent state, and browser network requests |
| Realtime works but reports are empty | Processing delay or report filters | Date range, filters, and standard report processing |
| Two page views occur per visit | Duplicate installation | Platform integration and Tag Manager tags |
Check consent and browser blocking
A consent banner can deny analytics_storage. When that state remains denied, the tag may not store analytics cookies or may send only limited cookieless signals, depending on the consent implementation and region. Check the banner's current state and confirm that the default consent command runs before the Google tag configuration.
Browser extensions, privacy browsers, corporate firewalls, and content-security policies can also block requests. Test in a clean browser profile or a private window without extensions, while following your organization's privacy rules. In developer tools, inspect the Network tab and search for requests containing collect. A failed request, blocked request, or JavaScript error gives more useful evidence than the absence of a report.
Find configuration and duplication errors
A page can contain a platform integration, a manually pasted Google tag, and a Tag Manager tag at the same time. Each may send a page view. Remove the extra installation or disable its automatic page-view option. Keep one deliberate ownership path for the Google tag.
Also check that you are testing the published site, not a cached page or a different hostname. Confirm the property, web stream, data filters, and date range before concluding that collection failed.
Exercise
Tag Assistant shows one Google tag with the correct Measurement ID, but Realtime remains empty. What should you check next?
Show answer
Check the consent state and browser Network tab. Confirm that analytics consent is allowed and that a request to the GA4 collection endpoint is not blocked or failing.