Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Server container (sGTM) endpoint down: how to find and fix it

TRK-119High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Server-side tagging adds a small server between your website and ad or analytics platforms. Your page sends a hit to your own tagging server URL (for example https://sgtm.example.com). The server then forwards it to GA4, Google Ads, Meta and others.

Where a server container outage breaks the chain
  1. Visitor submits formPage works normally
  2. Browser sends hit to sGTM URLRequest leaves the page
  3. sGTM endpointReturns 5xx or times out
  4. GA4, Google Ads, MetaNo hit received
  5. Reports and ad optimisationConversions missing

The page works and the browser sends the hit, but the server never answers, so nothing reaches the platforms.

Why it costs you leads or sales

Conversions reported per day around an outageExample numbers
Conversions reported per day around an outage (example)Day 1 (healthy): 24 conversions; Day 2 (healthy): 26 conversions; Day 3 (down): 0 conversions; Day 4 (down): 0 conversions; Day 5 (fixed): 25 conversions0102024260025Day 1 (healthy)Day 2 (healthy)Day 3 (down)Day 4 (down)Day 5 (fixed)conversions

Example: illustrative numbers. Real leads stay steady, but reported conversions fall to zero while the endpoint is down.

A hit that never gets delivered

The browser sends the event, but the server does not answer, so the tag never completes.

How to check if your site has it

Check your tagging server
  1. Find your server URLGoogle Tag Manager

    In tagmanager.google.com open your server container, go to Admin, then Container Settings, and read the Tagging server URL. Your web tags or GA4 config also use it as the transport URL.

  2. Open the health path

    Visit your server URL followed by /healthz in a browser. A working server shows ok. An error page, timeout or certificate warning means the endpoint is down or misconfigured.

  3. Watch the network requests

    Open your site, press F12, go to the Network tab and filter by your server domain. Look for failed (red) requests, 5xx status codes or requests stuck as pending.

  4. Test with PreviewGoogle Tag Manager

    In the server container click Preview, then load your site with the debug connection. If no incoming requests appear, hits are not reaching the server.

  5. Check the hosting

    Open your hosting console (for example Google Cloud App Engine or Cloud Run, or your managed provider) and look for stopped services, billing warnings, crash logs or deleted instances.

Quick endpoint check from a terminalbash
curl -i https://sgtm.example.com/healthz
# Healthy: HTTP/2 200 and a body of: ok
# Down: 5xx status, timeout, or SSL/DNS error

How to fix it

Restore the tagging server
  1. Read the error

    A 502 or 503 points to a crashed or overloaded service. A timeout points to a stopped service or firewall. A certificate or DNS error points to the domain setup (see TRK-120).

  2. Fix billing and quotas

    If the hosting account has a failed payment or exhausted quota, resolve it first. Services are often suspended silently.

  3. Restart or redeploy

    Redeploy the tagging server image or restart the service in your hosting console. Make sure the container configuration string (CONTAINER_CONFIG) is still set.

  4. Check minimum instances

    Make sure at least one instance is always running and that autoscaling has room to grow. A single instance is a common cause of outages.

  5. Confirm the URL in the container

    The Tagging server URL in the server container and the transport URL in your web tags must match the live address exactly.

Point the website at a working server URL
  1. Update the Google tag

    In your web container open the Google tag (GA4 configuration), find Configuration settings and set server_container_url to your working server URL. Preview, then publish.

gtag config pointing at the server containerjavascript
gtag('config', 'G-XXXXXXXXXX', {
  server_container_url: 'https://sgtm.example.com'
});

How to confirm it's fixed

Confirm the endpoint is healthy
  • Your server URL plus /healthz returns ok
  • The Network tab shows 200 responses to your server domain
  • Server container Preview shows incoming requests and the client claiming them
  • GA4 Realtime or DebugView shows your test event
  • Meta Events Manager and Google Ads show the test conversion arriving
  • Hits keep arriving after 24 hours

How to prevent it happening again

Prevention checklist
  • Run at least two instances with autoscaling enabled
  • Set billing alerts and keep payment details valid on the hosting account
  • Monitor the /healthz path with an uptime tool
  • Alert on 5xx error rates in your hosting logs
  • Document who owns the server and the domain
  • Re-test the endpoint after any hosting, DNS or container change
  • Compare reported conversions with real leads each week
How an unnoticed outage unfolds
  1. Day 0

    Hosting service stops after a billing issue or failed deployment.

  2. Day 1

    Reports show fewer conversions, but the site looks normal.

  3. Day 3

    Ad platforms start bidding on weaker data.

  4. Day 5

    Someone spots the gap and checks /healthz.

  5. Day 5

    Server restored and hits flow again. The missing days stay missing.

How FunnelGuard handles this

Questions people ask

Why is my server-side GTM not working?

The most common causes are a stopped or crashed hosting service, a failed payment on the cloud account, a broken custom domain or certificate, or a wrong server URL in your tags. Open your server URL plus /healthz to see whether the server answers.

How do I check if my sGTM server container is running?

Visit your tagging server URL followed by /healthz in a browser or run curl against it. A healthy server returns ok with a 200 status. You can also use Preview in the server container to see whether requests arrive.

What happens to my tracking if the server container goes down?

Browser hits sent to your server fail, so GA4, Google Ads, Meta and other platforms do not receive those events. Your site and forms still work, but reported conversions drop and the lost data cannot be recovered.

Why am I seeing 502 or 503 errors from my tagging server?

These usually mean the instance crashed, is overloaded or is not running. Check your hosting logs, restart or redeploy the service, and make sure the minimum number of instances is above zero.

How do I stop my server container from going down again?

Run at least two instances with autoscaling, keep billing valid, monitor the /healthz path with an uptime tool and alert on error rates. Re-test after any hosting or DNS change.

Can FunnelGuard tell me if my server container is down?

Only partly. FunnelGuard sees the tid in the tracking hits your journeys send, but it has no dedicated health check on the server container. Pair it with an uptime monitor on /healthz and hosting alerts.

Will lost conversions come back after I fix the endpoint?

No. Hits that failed while the server was down are not stored or retried, so those days stay missing from your reports. Fixing it quickly limits how much data you lose.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: tid seen; no health 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.