Sub topic 12
Troubleshoot when no data appears
This chapter assumes you have a GA4 property with a web data stream, you know where to find the Measurement ID, and you have installed the Google tag by one of the three routes: pasting it into the HTML, using a platform integration, or using Google Tag Manager. It also assumes you know the verification tools from the previous chapters: the Realtime report, Tag Assistant, and DebugView.
When GA4 shows nothing, the cause is almost always in one of four places: the tag never loads, the tag loads with the wrong settings, the hit is sent but blocked or dropped, or the data arrives and the report is hiding it. Work through them in that order.
Build a model of the data path
A page view reaches a report in several steps. A failure at any step looks the same from the reports: empty.
Use this diagram as a checklist. Start at the top and stop at the first step that fails.
Step 1: Confirm the tag is on the page
Open the live page, not your editor or staging copy. View the page source (in most browsers, Ctrl+U or Cmd+Option+U) and search for googletagmanager.com/gtag/js. If you use Tag Manager, search for googletagmanager.com/gtm.js instead.
Common reasons the tag is absent:
- Pasted in the wrong file. The snippet went into a template that the page does not use, or into a block that only some pages render.
- Not published. In Tag Manager, a saved workspace is not live until you submit and publish a version. In a platform, a draft theme or unsaved setting has the same effect.
- Cache. A caching plugin, CDN, or the browser can serve the old HTML. Purge the cache and reload with a hard refresh.
- Wrong environment. The tag is on staging but you are testing production, or the reverse.
- A script error earlier in the head. A JavaScript error in a script that runs before the tag can stop the page from reaching it. Open the browser console and look for red errors.
Step 2: Confirm the Measurement ID
The Measurement ID starts with G-. Compare the ID in the page source with the one under Admin > Data streams > your web stream. Check for these mistakes:
- A typo, or an ID copied with a trailing space.
- A Universal Analytics ID (
UA-). Universal Analytics stopped processing data in 2023, so aUA-tag collects nothing in GA4. - A Google Ads ID (
AW-) or a Tag Manager container ID (GTM-) placed where aG-ID is expected. TheGTM-ID belongs in the Tag Manager snippet. TheG-ID belongs in the Google tag or the GA4 field of the platform. - An ID from a different property or stream than the one you are viewing in the report.
The last case is common for agencies and anyone with several properties. The data is arriving, but in a property you are not looking at. Check the account and property selector at the top of the GA4 interface.
Step 3: Check the network request
The most direct test is to watch the request leave the browser.
- Open developer tools and go to the Network tab.
- Reload the page.
- In the filter box, type
collect. - Look for requests to
google-analytics.com/g/collector a similar regional or first-party domain.
A request with status 200 or 204 means the browser sent the hit. Click it and check the tid parameter in the payload. It should equal your Measurement ID. The en parameter holds the event name, such as page_view.
If no request appears, the tag did not run or something blocked it. If the request is red or shows blocked, an extension or network rule stopped it. Test in a private window with extensions disabled, and on a different network. Ad blockers, privacy browsers (such as Brave), and some corporate firewalls block Google Analytics. A tester behind such a block will see an empty Realtime report even though visitors without a blocker are counted.
Step 4: Check consent
When you set consent defaults to denied, as in the earlier chapter, the tag behaves differently from a normal install. With analytics_storage denied, the tag does not set analytics cookies. It can still send cookieless pings, and Google may model some of that data later, but those pings do not appear in the same way as normal hits.
Check these points:
- Does the consent banner actually call
gtag('consent', 'update', ...)when a visitor accepts? A banner that records the choice but never updates the tag leaves consent denied forever. - Does the default consent call run before the
configcall? If it runs after, the first hits may be sent with the wrong state. - In your own test, did you click Accept? A tester who ignores or rejects the banner will see little or no data.
Here is a correct update call to compare with your banner's behavior:
function onAnalyticsAccepted() {
gtag('consent', 'update', {
analytics_storage: 'granted'
});
}In Tag Assistant, the consent state is shown for each event. Use it to see which state the tag actually held when the page loaded.
Step 5: Look for filters and exclusions
If the request is sent but the reports are empty, look at what happens inside GA4.
- Internal traffic. Under Admin > Data streams > your stream > Configure tag settings > Define internal traffic, a rule may tag your office IP address as
internal. The default data filter named Internal Traffic can then exclude it. If you test from the office and the filter is active, your own visits are dropped. Test from a phone on mobile data to check. - Developer traffic. The Developer Traffic filter excludes hits that carry
debug_modeor come from certain debug tools. A filter set to active can hide the very events you want to see in standard reports. DebugView still shows them. - Filter state. A data filter in Testing state labels data but does not remove it. In Active state it permanently excludes data. You cannot recover data that an active filter removed.
- Unwanted referrals and cross-domain settings. These change attribution, not whether data exists. A missing page view is rarely caused by them, but a session that looks like it came from your own domain can be.
Step 6: Check the report, not just the data
Data can be present and still not visible.
- Date range and processing delay. Realtime shows hits within seconds. Standard reports can take 24 to 48 hours to fill. A brand-new property will have empty standard reports on its first day even when everything works.
- Wrong report. Realtime shows the last 30 minutes only. Confirm you are in the right property, with the right date range.
- Comparisons and segments. A leftover comparison or filter on a report can show zero rows. Remove all comparisons and filters.
- Thresholding. Reports that include demographics or other Google signals data can hide rows when the counts are small, to protect privacy. Switch to a report without those dimensions.
- Data retention and sampling. These apply to explorations, not to the basic page view check.
Platform and Tag Manager specifics
Each installation route has its own failure patterns.
| Route | Common cause of no data | What to check |
|---|---|---|
| Manual snippet | Snippet missing from some templates, wrong ID | View source on several page types |
| Platform integration | Plugin not connected to the right account, or theme overrides the head | Plugin settings, and view source for the `G-` ID |
| Google Tag Manager | Workspace not published, trigger does not fire | Preview mode, then the published version number |
| Any route with consent | Consent never updated to `granted` | Tag Assistant consent panel |
For Tag Manager, use Preview. It opens Tag Assistant, connects to your site, and lists each tag as Fired or Not Fired. If the Google tag shows Not Fired, open it and read which trigger condition failed. A common mistake is a trigger limited to Initialization - All Pages on the wrong tag type, or a trigger exception that matches every page.
Test with DebugView
DebugView shows events from a single device within seconds, even if standard reports are filtered or delayed. To use it, enable debug mode on the tag:
gtag('config', 'G-XXXXXXXXXX', {
debug_mode: true
});Then open Admin > DebugView and watch for your device in the device selector. If events appear in DebugView but not in Realtime, the cause is in the filters or in the report. If nothing appears in DebugView, the problem is earlier in the path, in the tag, the ID, or the request. Remove debug_mode after testing so production traffic is not flagged as debug traffic.
A short diagnostic sequence
Run these checks in order and stop when one fails.
- View source on the live page and find the
G-ID. - Compare it with the ID on your web stream.
- Load the page in a private window with extensions off and look for a
collectrequest in the Network tab. - Confirm
tidin that request matches your ID. - Accept consent, if a banner is present, and reload.
- Check DebugView with
debug_modeon. - Review internal traffic and developer traffic filters.
- Clear all report filters and comparisons, then check Realtime and then standard reports after 48 hours.
Common mistakes to avoid
- Testing from your own network while an internal traffic filter is active.
- Declaring the install broken on day one because standard reports are empty.
- Adding a second tag to fix the problem, which then double counts once the first starts working.
- Editing a Tag Manager workspace and forgetting to publish.
- Leaving
debug_modeon in production.
Exercise
A site owner installed the Google tag through a platform plugin. Realtime shows nothing when she browses from her office. View source shows the correct G- ID, and the Network tab shows a collect request with status 204 and the right tid. Name two likely causes and how you would tell them apart.
Show answer
The hit is being sent, so the tag and ID are fine. One likely cause is an active Internal Traffic data filter that excludes her office IP address. The other is a consent state of denied, so the hit is a cookieless ping that does not show up as a normal event. To tell them apart, check Tag Assistant for the consent state of the page load, and open Admin > Data settings > Data filters to see whether the Internal Traffic filter is Active. A quick extra test is to visit the site from a phone on mobile data after accepting consent. If that visit shows in Realtime, the office traffic filter was the cause.
Exercise
A Tag Manager user made changes to the Google tag, tested them in Preview, and saw the tag Fired. The next day, standard reports still show no new data from the live site. What did they probably forget, and how do they confirm it?
Show answer
They probably did not submit and publish the workspace. Preview mode runs the unpublished workspace, so it can show Fired while the live container is unchanged. They can confirm by opening the Versions tab in Tag Manager and checking that the live version number matches the latest one, or by viewing the live page source and checking the network requests without Preview mode on.