Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Server-side GTM container down: how to detect and fix it

OPS-232High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Server-side Google Tag Manager (sGTM) moves tracking from the visitor's browser to a server you control. The browser sends one request to your tagging server, usually on a subdomain such as metrics.example.com. The server then forwards data to GA4, Google Ads, Meta and other platforms.

Why it costs you leads or sales

Where the hits are lost
  1. Visitor convertsForm or purchase completes normally
  2. Browser sends hitRequest goes to metrics.example.com
  3. sGTM serverReturns 502/503 or times out
  4. GA4, Google Ads, MetaNever receive the conversion
  5. Ad optimisationBidding learns from missing data

The visitor journey works, but tracking stops at the tagging server.

Reported conversions during an outageExample numbers
Reported conversions during an outage (example)Day 1 (healthy): 20 conversions per day; Day 2 (down): 0 conversions per day; Day 3 (down): 0 conversions per day; Day 4 (fixed): 20 conversions per day0815200020Day 1 (healthy)Day 2 (down)Day 3 (down)Day 4 (fixed)conversions per day

Example: actual sales stay steady at 20 a day, but reported conversions fall to zero while the tagging server is down.

How to check if your site has it

Check your tagging server by hand
  1. Open the health URL

    Visit https://metrics.example.com/healthz (use your own tagging server domain). A healthy server shows 'ok'. An error page, timeout or certificate warning means a problem.

  2. Watch the Network tab

    Open your site, press F12, go to Network and filter by your tagging domain. Look for requests with status 5xx, failed, or blocked.

  3. Use GTM Preview

    In the server container, click Preview. If no incoming requests appear while you browse the site, the browser is not reaching the server or the client is not claiming requests.

  4. Check the hosting console

    In Google Cloud, open Cloud Run (or App Engine) and view the service status, logs and revisions. Also check Billing for a suspended account.

  5. Compare reports

    Look at GA4 Realtime and the Google Ads conversion status. A sudden flat line while orders continue points to tracking loss.

Quick status check from a terminalbash
curl -i https://metrics.example.com/healthz
# Expect: HTTP/2 200 and body: ok

How to fix it

Fix by setup
  1. Check the container config

    In the server container, open Admin > Container Settings and confirm the Tagging server URL matches your live domain.

  2. Publish a working version

    If a recent change broke things, open Versions and publish the last known good version.

  3. Verify clients

    Make sure the GA4 client is still enabled so requests are claimed.

How to confirm it's fixed

Fix confirmation
  • /healthz returns 200 and 'ok'
  • Network tab shows 200 responses from the tagging domain
  • GTM server Preview shows incoming requests and tags firing
  • GA4 Realtime shows your own test visit
  • Google Ads and Meta show the test conversion in their diagnostics tools
  • Cloud Run logs show no new 5xx errors

How to prevent it happening again

Prevention
  • Set up an uptime check on /healthz with an alert to a shared inbox or chat channel
  • Use billing alerts and keep payment details current
  • Run at least the recommended number of minimum instances in production
  • Test every container change in Preview before publishing
  • Document the DNS record and certificate owner for the tagging subdomain
  • Review conversion volume weekly for sudden flat lines

How FunnelGuard handles this

A tracking hit that never lands

The page works, but the hit to the tagging server fails.

Questions people ask

Why is my server-side GTM not receiving any requests?

The browser may not be reaching your tagging server, or the server may be down. Check /healthz on your tagging domain, look at the Network tab for failed requests, and confirm the DNS record and SSL certificate are valid. Also check that a client in the server container is enabled to claim incoming requests.

How do I check if my sGTM server is up?

Open https://your-tagging-domain/healthz in a browser or run curl -i on it. A healthy server returns HTTP 200 and the text 'ok'. Any error, timeout or certificate warning means the server needs attention.

Why did my Google Ads conversions drop to zero after setting up server-side tagging?

The tagging server may be failing, so conversion hits never reach Google Ads. Check the server health URL, GTM server Preview and the Cloud Run logs. Also confirm the conversion tag in the server container is published and has the right conversion ID.

What causes a 502 or 503 error on a server-side GTM endpoint?

Usual causes are a crashed or failed deployment, no available instances, exceeded quota, or a suspended billing account. Check Cloud Run logs and revisions first, then billing and quotas.

Will a server-side GTM outage affect my website forms or checkout?

Usually not. The forms and checkout keep working because tracking runs separately. The damage is lost tracking data, so analytics and ad platforms miss the conversions.

Can I recover conversions lost while the tagging server was down?

Usually not automatically, because the hits were never stored. Some platforms let you upload offline conversions afterwards using your own order or lead records, such as Google Ads offline conversion import. Check each platform's rules and time limits.

Does FunnelGuard monitor my server-side GTM container?

Only partly. It has no health check for the container itself, but it verifies tracking hits during real journeys, so missing hits can trigger an alert. Add an uptime monitor on /healthz for direct coverage.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: 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.