Skip to content
FunnelGuard

Fix guide by FunnelsGuard

sGTM not forwarding to GA4 while the browser hit succeeds

TRK-122High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

In server-side Google Tag Manager (sGTM), the page sends data to your own server container instead of straight to Google. The server container then has to forward the event to GA4 with a GA4 tag. This issue is when the first leg works and the second does not.

Where the event gets lost
  1. Browser hitRequest to your server endpoint returns 200
  2. Server clientGA4 client claims the request
  3. GA4 tag (server)Does not fire or fails to send
  4. GA4 propertyNo event arrives
  5. Reports and adsConversions missing

The browser hit succeeds, so nothing looks wrong until you check GA4.

Why it costs you leads or sales

GA4 is where many teams read conversions, and key events are often imported into Google Ads for bidding. If events stop arriving, reports show a drop that looks like a demand problem, and ad platforms that learn from GA4 key events get less signal. The site still works, so nobody notices for days.

GA4 key events per dayExample numbers
GA4 key events per day (example)Before the break: 48 events; Day 1 after: 0 events; Day 2 after: 0 events; After the fix: 47 events01837480047Before the breakDay 1 afterDay 2 afterAfter the fixevents

Example: the server container forwarding breaks after a publish, and recorded events drop to zero while real leads continue.

How to check if your site has it

Find where the forward breaks
  1. Trigger the event yourself

    Open your site, do the action (submit a form, view a page), and watch GA4 under Reports > Realtime. Wait a minute.

  2. Check the browser request

    In browser dev tools, open the Network tab and find the request to your server container domain. Note the status code.

  3. Open server container PreviewGoogle Tag Manager

    In GTM, open the server container and click Preview. Load your site with the debugger connected and select the incoming request.

  4. Read the Tags tabGoogle Tag Manager

    Check that the GA4 tag shows as fired. If it says not fired, look at which trigger conditions failed. If it fired, open it and read the outgoing HTTP request and the response status.

  5. Compare IDs

    Confirm the measurement ID in the server GA4 tag matches the GA4 data stream you are looking at in Realtime.

What each symptom usually points to
What you see in server PreviewLikely cause
Request not claimed by any clientClient missing or path mismatch (a different issue, TRK-121)
Client claims, GA4 tag not firedTrigger does not match the event name, or tag paused
GA4 tag fired, outgoing request failsServer cannot reach Google, or an invalid request
GA4 tag fired, 2xx response, no event in GA4Wrong measurement ID, or looking at the wrong property
Works in Preview, not liveServer container changes not published

How to fix it

Fix by where the cause sits
  1. Fix the trigger

    In the server container, open the GA4 tag's trigger. Make sure it uses the Client Name or Event Name that actually arrives (see the incoming request in Preview). For page views the event name is page_view.

  2. Fix the measurement ID

    Open the GA4 tag and set the Measurement ID to the G- ID of the data stream you report on. Check any variable that sets it.

  3. Unpause and publish

    Make sure the tag is not paused, then click Submit in the server container. Preview changes are not live until published.

  4. Check the GA4 client settings

    Open the GA4 client and confirm the default paths (/g/collect) match what the web container sends. Check the web GA4 tag's server_container_url points at your server domain.

gtag.js sending to a server containerhtml
<script async src="https://sst.example.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', {
    server_container_url: 'https://sst.example.com'
  });
</script>
Server container GA4 forwarding

Broken

  • Browser hit returns 200
  • GA4 tag not fired or wrong measurement ID
  • Realtime shows nothing

Fixed

  • Client claims the request
  • GA4 tag fires and Google accepts it
  • Event appears in Realtime within a minute or two

How to confirm it's fixed

Confirmation checklist
  • Server container Preview shows the GA4 tag as fired for the request
  • The outgoing request to Google returns a success status
  • The event appears in GA4 Realtime for the right property
  • The server container version with your fix is published
  • A real action, such as a test form submission, produces a key event

How to prevent it happening again

Habits that stop this recurring
  • Test the GA4 event in Realtime after every server container publish
  • Keep a note of the measurement ID and server domain used per site
  • Review server container changes before publishing, as you do for the web container
  • Check outbound access when you move hosting or change firewall rules
  • Run an automated check on a schedule so a silent break is caught the same day

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor runs your real journey on a schedule, such as a form submission, then runs a GA4 Realtime arrival check: did the event it triggered actually show up in GA4? If the browser hit goes out but the event never arrives, that points to a break after the browser, such as in server-side forwarding.

Questions people ask

Why is my server-side GTM not sending data to GA4?

Usually the GA4 tag in the server container does not fire or fails. Open the server container's Preview, select the incoming request, and check the Tags tab. Common causes are a trigger that does not match, a wrong measurement ID, a paused tag, or changes that were never published.

Why does the browser request return 200 but GA4 shows nothing?

A 200 only means your server container received the request. The server container still has to forward the event to Google with a GA4 tag. If that tag does not fire or sends to the wrong property, GA4 never receives it.

How do I debug sGTM not forwarding to GA4?

Open the server container, click Preview, and load your site with the debugger connected. Select the request, check whether the GA4 client claimed it, whether the GA4 tag fired, and what the outgoing request returned. Then check GA4 Realtime.

Do I need to publish the server container for GA4 to work?

Yes. Preview mode uses your draft, but live traffic uses the published version. If the tag works in Preview and not in production, submit and publish the server container.

Can a wrong measurement ID cause missing GA4 events with sGTM?

Yes. If the GA4 tag in the server container uses a different G- ID from the data stream you are viewing, events go to another property. Compare the ID in the tag with your GA4 data stream.

How long should a server-side event take to show in GA4 Realtime?

Usually a minute or two. If nothing appears after a few minutes and the Preview shows the tag fired with a success response, check you are looking at the right property.

Can I monitor this automatically?

Yes. FunnelGuard runs your journey on a schedule and checks whether the resulting event arrives in GA4 Realtime. If it does not, it re-checks from a second region and sends one alert with a screenshot and likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: GA4 Realtime arrival check.

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.