Skip to content
FunnelGuard

Fix guide by FunnelsGuard

sGTM client not claiming requests (400 error): how to fix it

TRK-121High impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Where the hit dies
  1. Visitor convertsBrowser tag fires
  2. Request to serverReaches your sGTM URL
  3. Client matchingNo client claims it, 400
  4. Server tagsNever run
  5. GA4, Ads, MetaNo conversion received

The browser sends the hit, but no client in the server container claims it, so nothing reaches your ad and analytics platforms.

Why it costs you leads or sales

Conversions recorded vs realExample numbers
Conversions recorded vs real (example)Real leads: 100 conversions per week; Recorded (broken): 35 conversions per week; Recorded (fixed): 98 conversions per week038771003598Real leadsRecorded (broken)Recorded (fixed)conversions per week

Example: 100 real leads a week. Before the fix the server rejects most hits; after the fix they are claimed and forwarded.

How to check if your site has it

Find unclaimed requests
  1. Open server container previewGoogle Tag Manager

    In Google Tag Manager, open your server container and click Preview. Enter your site URL in the debug view and load it.

  2. Look at the request listGoogle Tag Manager

    Select each incoming request. A request with no client shows 'No client claimed the request' and a 400 response.

  3. Check the browser Network tab

    Open browser developer tools, go to Network and filter by your server domain. Look for requests with status 400 and note the exact path, such as /g/collect or a custom path.

  4. Compare path and formatGoogle Tag Manager

    Open Clients in the server container. Compare each client's settings (for example the GA4 client's default paths) with the path you noted.

  5. Check server logs

    If you host on Cloud Run or similar, open the request logs and filter for 400 responses to see how often and on which paths it happens.

How to fix it

Typical causes and fixes
SymptomLikely causeFix
400 on /g/collectGA4 client missing, deleted or pausedAdd or restore the Google Analytics: GA4 client
400 on a custom pathProxy or loader rewrites the pathMatch the client path or fix the rewrite
Some events claimed, others notDifferent request formats or a Measurement Protocol callAdd a client for that format
Wrong client claims the requestAnother client has higher priorityReorder priority or narrow its paths
Fix a client that is not claiming requests
  1. Confirm a matching client existsGoogle Tag Manager

    In the server container go to Clients. For GA4 traffic you need the Google Analytics: GA4 client. For other formats add the client type that matches, or build a custom client.

  2. Match the request pathGoogle Tag Manager

    Open the client and check its paths. If your browser sends to a custom path, change the client setting or the browser tag's server address so they agree.

  3. Check the browser tag's server URLGoogle Tag Manager

    In the web container, open your GA4 configuration or Google tag and check the server container URL (transport URL). It must be your real server endpoint with no typos or extra path.

  4. Review client priorityGoogle Tag Manager

    Clients run in priority order and the first to claim wins. Open each client's advanced settings and make sure a broad client is not claiming requests meant for another.

  5. Check proxies and loaders

    If a CDN, reverse proxy or custom loader sits in front of the server, make sure it passes the path, query string, method and body unchanged.

  6. Publish the server containerGoogle Tag Manager

    Client changes only apply to live traffic after you click Submit and publish the version.

Where to change the server address, by platform
  1. Set the server URL

    In the web container, open the Google tag and under Configuration settings add the parameter server_container_url with your server endpoint.

  2. Check the client

    In the server container, open Clients and confirm the GA4 client is enabled.

gtag.js sending hits to a server containerjavascript
gtag('config', 'G-XXXXXXXXXX', {
  server_container_url: 'https://sgtm.example.com'
});

How to confirm it's fixed

Confirmation checks
  • Server preview shows each incoming request with a claiming client named
  • Requests in the browser Network tab return 200 or 204 instead of 400
  • Server tags such as GA4 show as fired for each event
  • The conversion appears in GA4 DebugView or Realtime
  • Server logs show 400 responses dropping after the change
  • Submit and publish was done on the server container
Server preview, before and after

Before

  • Request arrives at /g/collect
  • No client claimed the request
  • 400 returned, no tags fired

After

  • Request arrives at /g/collect
  • GA4 client claims it
  • 200 returned, server tags fire

How to prevent it happening again

Prevention habits
  • Document the server URL, client paths and any proxy rewrites
  • Test server preview after any change to the web container's server URL
  • Review client changes before publishing, as deleting or pausing a client breaks traffic at once
  • Re-test after changing CDN, proxy or custom loader settings
  • Set up log alerts on rising 400 rates if your hosting supports it
  • Run a real test conversion after every release

How FunnelGuard handles this

Questions people ask

What does 'no client claimed the request' mean in server-side GTM?

It means a request reached your server container but none of its clients recognised it. The server returns a 400 error and no server tags run. It usually points to a path, format or client setting mismatch.

Why is my server-side GTM returning 400?

The most common reason is that no client matches the request. Check that the GA4 client exists and is enabled, that its path matches what the browser sends, and that no proxy rewrites the path.

How do I fix a GA4 client that is not claiming requests?

Open Clients in the server container, confirm the Google Analytics: GA4 client is present, and check its paths against the request path in the Network tab. Then verify the server URL in your web tag and publish the server container.

Why does server preview show requests with no client?

Preview lists every request that reaches the server. If a request has no claiming client, the path, method or body does not match any client, or a higher-priority client is taking it.

Can a custom domain or proxy cause the 400 error?

Yes. If a CDN, reverse proxy or custom loader changes the path, drops the body or alters the method, the client no longer recognises the request. Make sure it passes requests through unchanged.

Will a 400 from my server container stop my website working?

No. The page and form still work for visitors. Only the tracking hit is lost, so the damage shows up as missing conversions in your reports and ad platforms.

Does FunnelGuard detect sGTM clients not claiming requests?

Not yet. It is a possible future check. FunnelGuard runs your journeys and checks the tracking hits sent to ad and analytics platforms, but it has no rule for this specific server-side issue.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.