On this page
What this issue is
Every GA4 tag sends hits, which are small web requests, to a collection endpoint. By default that is google-analytics.com/g/collect (or a regional variant). Many sites change this on purpose. They send hits to their own domain, such as metrics.yoursite.com, through a reverse proxy, a CDN rule or a server-side Google Tag Manager (sGTM) container.
- Visitor opens pagePage loads normally
- GA4 tag runsBuilds the hit
- Request to endpointBlocked, 4xx or 5xx
- Google receives hitNothing arrives
- ReportsSessions and conversions missing
The page and the tag work, but the hit never arrives at Google.
Why it costs you leads or sales
Example: a proxy failing for part of the traffic means GA4 records fewer conversions than actually happened.
How to check if your site has it
Open the Network tab
In Chrome, press F12, open Network, tick Preserve log and reload the page.
Filter for collect
Type
collectin the filter box. Look for requests to/g/collecton google-analytics.com or on your own domain.Read the status
A healthy hit returns 200 or 204. Red entries, 403, 404, 5xx or (blocked) mean the hit failed. If there is no collect request at all, the tag itself is not running.
Compare regions
Test from another network or with a VPN you are allowed to use. A hit that works in one country and fails in another points to a regional block.
Open GA4 Realtime
In GA4, go to Reports, Realtime, then load your page. If you appear in Realtime, hits arrive. If not, they are being lost.
How to fix it
Check the server container URL
In your GA4 Google tag, open Configuration settings and check the
server_container_urlparameter. It must match a live sGTM domain.Test the server container
Open the sGTM container, use Preview, and confirm the incoming GA4 client claims the request. Check the hosting (Cloud Run or App Engine) is running.
Fall back if needed
Remove
server_container_url, publish, and hits go to Google directly while you repair the server side.
Check your analytics plugin
In plugins such as Site Kit or a GTM plugin, look for a custom domain or server-side setting and confirm the URL is live.
Purge caches
After changing settings, clear your caching plugin and CDN so visitors get the updated script.
Check the Google and YouTube app
In the Shopify admin, open the Google and YouTube app or your Customer events pixel and confirm no custom endpoint was added.
Check theme code
Search theme.liquid for
transport_urlor a custom/collectdomain and remove it if the proxy is dead.
Test the proxy directly
Request your proxy URL with curl and check it returns a 2xx status, not 404 or 502.
Check DNS, certificate and firewall
Confirm the record points to the right host, the TLS certificate is valid and no WAF rule blocks
/g/collect.Check forwarding
Your proxy must pass the query string and body to Google unchanged.
gtag('config', 'G-XXXXXXXXXX', {
transport_url: 'https://metrics.yoursite.com',
first_party_collection: true
});curl -I "https://metrics.yoursite.com/g/collect?v=2&tid=G-XXXXXXXXXX&en=test"Before
- Collect request returns 404 or 502
- Realtime stays empty
- Conversions undercounted
After
- Collect request returns 200 or 204
- Visit appears in Realtime
- Conversions match real activity
How to confirm it's fixed
- The
/g/collectrequest returns 200 or 204 in the Network tab - Your visit appears in GA4 Realtime within a minute
- The same works from a second network or region
- A test form or purchase shows its key event in DebugView or Realtime
- Daily sessions return to their usual level over the next days
How to prevent it happening again
- Monitor the proxy or sGTM domain separately from the website
- Set a calendar reminder for certificate and domain renewals
- Keep a note of who owns the server container and its hosting bill
- Re-test hits after any CDN, firewall or DNS change
- Watch GA4 for sudden drops in sessions by country
How FunnelGuard handles this
Questions people ask
Why is my GA4 not receiving data even though the tag is installed?
The tag can run correctly while its hits fail to arrive. Open the browser Network tab, filter for collect and check the status. A blocked, 4xx or 5xx response means the endpoint or proxy is the problem.
How do I check if GA4 hits are being blocked?
Open Chrome DevTools, go to Network, filter for collect and reload the page. A 200 or 204 means the hit was accepted. Red or blocked entries mean it failed. Test in a clean profile to rule out ad blockers.
Why is my GA4 server-side proxy returning 404 or 502?
Common causes are a wrong DNS record, an expired certificate, a deleted or stopped server container, or a proxy rule that does not forward /g/collect. Test the URL with curl and check your hosting logs.
What is transport_url in GA4?
It is a gtag setting that tells GA4 to send hits to your own server-side endpoint instead of Google's default. If that endpoint is down, hits are lost, so remove it to fall back to the default while you fix it.
Can GA4 be blocked in some countries?
Yes. Networks, regional rules and privacy tools can block the default Google endpoint for some visitors. Compare GA4 sessions by country and test from other regions to spot it.
Will a first-party proxy stop ad blockers from blocking GA4?
It can reduce blocking because hits go to your own domain, but it is not guaranteed and it adds a system that can fail. You must monitor it like any other part of the funnel.
Can FunnelGuard detect a failing GA4 proxy?
Partly. It detects that an expected GA4 hit is missing during a scheduled journey from the EU or US and alerts you. It does not confirm the exact cause or test every region, so check the collect request by hand.
Related issues
- TRK-009GA4 script blocked by Content Security PolicyFix guide
- TRK-010GA4 script loaded from a wrong or dead custom domainFix guide
- TRK-001GA4 tag missing from a funnel pageFix guide
- TRK-002GA4 tag missing site-wide after a theme or builder changeFix guide
- TRK-008gtag.js loaded but config command never calledFix guide
- TRK-013GA4 missing on hosted checkout or booking domainFix guide