About Services Cases Blog Tools Reviews Partners Contacts

Server-Side Tracking and sGTM: What It Is, How It Differs from Regular GTM and Google Tag Gateway, and When It Makes Sense

Server-side tracking and sGTM: what it is and when it makes sense

Server-side tracking is being recommended to everyone right now: “install sGTM and your data will stop getting lost.” That’s partly true. But for many websites it gives almost the same result as the free Google tag gateway, just at a higher cost and with more maintenance.

I’ll explain what server-side tracking is, how it differs from regular tracking and Google tag gateway, and when it pays off and when it doesn’t. The ads-expert.online website itself runs on sGTM, so everything below has been tested on it.

Contents
  1. What server-side tracking is and why it matters
  2. Client-side, Google tag gateway and sGTM: the difference
  3. When sGTM makes sense
  4. When sGTM doesn’t make sense
  5. What you need to set it up
  6. What sGTM doesn’t solve
  7. How much it costs
  8. Where to start
  9. FAQ

What server-side tracking is and why it matters

In regular tracking, the visitor’s browser sends data to Google Analytics, Google Ads and Meta itself. Each platform is a separate script and a separate request to someone else’s domain.

In server-side tracking, data from the website first goes to your server, and from there to Google, Meta or a CRM. The server runs on a subdomain of your site, so for the browser it’s a request to your own site. sGTM (server-side Google Tag Manager) is a server-side GTM container that receives this data, processes it and sends it on.

Why it matters:

  • less data loss from ad blockers and browser restrictions;
  • control over what is sent and where: you can remove unnecessary fields or add the ones you need before sending;
  • a foundation for server-side conversions: Google Ads, Meta Conversions API, TikTok Events API.

Client-side, Google tag gateway and sGTM: the difference

ParameterClient-side GTMGoogle tag gatewaysGTM
Where scripts load fromGoogle’s domainYour domainYour domain
Where data goesStraight to Google / MetaThrough your domain, unprocessedTo your server, processed
Data control (remove / add fields)NoNoFull
Meta CAPI, CRM, webhooksNoNoYes
ComplexityBasic2 minutes in CloudflareServer, DNS, a second container
Cost$0$0Hosting + setup

Google tag gateway is the quick free minimum: Google tags load through your domain, and ad blockers cut them less often. sGTM gives full control over data and server-side integrations with other platforms. They don’t get in each other’s way: both run on my site.

Google Tag Gateway: +14% More Data in 2 Minutes via GTM and Cloudflare Analytics · GTMGoogle Tag Gateway: +14% More Data in 2 Minutes via GTM and CloudflareWhat Google Tag Gateway is, why you need it and how to set it up via Google Tag Manager and Cloudflare in 2 minutes. A step-by-step guide with screenshots.Oct 18, 2026Read

When sGTM makes sense

  • Large ad budgets. Every lost conversion means worse bid strategy learning and real money.
  • Several ad platforms. Google Ads, Meta, TikTok: one server endpoint instead of three separate pixel setups.
  • An audience with ad blockers. IT, B2B, international markets — the share of people with uBlock and similar extensions is noticeably higher there.
  • Sending data from a CRM or payment system. A payment event or deal status can be sent straight from the server, without the browser.
  • GDPR. Personal data can be stripped on the server before it reaches ad platforms.

When sGTM doesn’t make sense

  • A small site, a small budget, one GA4. Google tag gateway gives most of the effect for $0.
  • Basic tracking doesn’t work. Duplicate conversions, events firing in the wrong place, messenger clicks instead of leads. sGTM will simply move the same problems to the server. I showed what typical broken tracking looks like in the article $750-a-month GTM tracking.
  • Nobody to maintain it. A server container is a second container that has to be updated together with the web container, plus hosting limits you need to watch.

What you need to set it up

Briefly, without a step-by-step manual:

  1. A server-side GTM container.
  2. Hosting. Stape or Google Cloud, in a region close to your audience. My Stape container runs in the EU East region (Poland).
  3. A subdomain and a DNS record. On ads-expert.online it’s a CNAME record io.ads-expert.online → the Stape server. Stape advises against naming the subdomain gtm, sgtm, analytics or tracking: ad blockers recognise such names faster.
  4. In the web container — the server_container_url parameter with the subdomain address; in the server container — the GA4 client and tags.
  5. Testing in Preview of the server container before publishing.
DNS record pointing the io.ads-expert.online subdomain to the Stape server in Cloudflare
CNAME record for the subdomain pointing to Stape in Cloudflare
The ads expert server container on Stape
Server container on Stape

How to tell everything works:

  • in the browser’s Network tab, requests go to your subdomain;
  • the request counter in Stape grows;
  • GA4 shows events in the realtime report;
  • the server container’s Preview shows incoming events and the tags that fired on them.

On my site, Preview shows page_view, scroll depth, clicks and a Telegram click. The “GA4 - server” tag fired on all 11 events.

Server container Preview: incoming events and the GA4 - server tag that fired 11 times
Server container Preview: the GA4 - server tag fired on all 11 events

What sGTM doesn’t solve

  • Cookies in Safari. Without extra solutions (Cookie Keeper in Stape or FPID), cookies in Safari still last up to 7 days.
  • Ad blockers with full rule sets. uBlock and similar extensions cut some requests even through your subdomain. Losses are smaller, but not zero.
  • User consent. If a person declines cookies, there won’t be full data. Consent Mode works with a server container too, and you still need to set it up.
  • Misconfigured conversions. The server passes on what it receives. If a conversion counts everything, it will keep counting everything.
  • Offline conversions from a CRM. sGTM can be part of that setup, but phone sales, messenger orders and cancelled orders still have to be sent from the CRM.
14 — AnalyticsConsent Mode setupSetting up a functional consent mode banner for the EEA in line with Google’s EU User Consent Policy.from $100Learn more

How much it costs

Hosting. Stape has a free plan with 10,000 requests a month. For a small site that’s enough: at the time of the screenshot my container had used 135 requests, 1% of the limit. Stape’s paid plans at the time of writing:

PlanRequests per monthPrice
Free10 000€0
Pro500 000€20
Pro+2 000 000€50
Business5 000 000€100
Stape plans: Free, Pro, Pro+, Business
Stape plans at the time of writing

What happens if you run out. According to Stape’s help center, a free container is switched off once the limit is used up, and it can only be restored by upgrading to a paid plan. On Pro and Pro+ plans, processing stops at 110% of the limit until the next billing period. So part of your data simply won’t reach GA4 and Google Ads. To avoid this, watch the counter in Stape or turn on automatic plan upgrades.

The alternative to Stape is Google Cloud. There you pay for server resources and configure the server yourself.

Setup — from $250, depending on the number of platforms (GA4, Google Ads, Meta, TikTok) and events.

37 — AnalyticsServer-side tracking setup (sGTM)Server-side GTM on your subdomain: GA4, Google Ads, Meta CAPI and TikTok via the server.from $250Learn more

Where to start

Before installing sGTM, check that your regular tracking works: conversions in GA4 and Google Ads match the real leads or orders in your CRM. If they do, connect Google tag gateway — it’s free and takes a few minutes. sGTM makes sense when you need server-side integrations with Meta, TikTok or a CRM, or when your ad budget is large enough that every lost conversion shows up in money.

Related services
Conversion tracking with GTM and GA4 Accurate tracking: Google Tag Manager, GA4, Enhanced Conversions, Google Tag Gateway. from $50Learn more End-to-end analytics All inquiry sources and CRM sales in one picture: you see which channel actually brings money. from $400Learn more
Want to know whether you actually need sGTM? Get in touch, I’ll look at your tracking

FAQ on the topic

Frequently asked questions

What is sGTM in simple terms?
It’s a server-side Google Tag Manager container. Data from the website first goes to your server on a subdomain of your site, and from there to Google Analytics, Google Ads, Meta or a CRM. Less data gets lost, and you control exactly what is sent.
How is sGTM different from Google tag gateway?
Google tag gateway only routes Google tags through your domain, without processing the data. sGTM is a separate server that lets you change data before sending it and pass it to Meta, TikTok or a CRM. The gateway is free and takes a few minutes to set up; sGTM needs hosting and configuration.
Does a small website need sGTM?
Mostly no. If you have a small budget and a single GA4, Google tag gateway gives you most of the effect for free. sGTM makes sense with large budgets, several ad platforms, or a need to send data from the server.
How much does server container hosting cost?
Stape has a free plan with 10,000 requests a month, then from €20 a month for 500,000 requests. On Google Cloud you pay for server resources.
Does sGTM work with Consent Mode?
Yes. Consent Mode works with a server container too, and you still need to set up consent on the website. Without user consent there won’t be full data in either regular or server-side tracking.



Contact

Let's discuss
your project

Leave a request — we'll assess your situation, discuss your goals and find the best solution for your business and budget.

🏆
As a Google Partner, I can help you get a Google Ads bonus of up to 55,000 UAH ($1.2K) for your first campaigns.
❌ I don't work with: gambling · betting · alcohol · tobacco · crypto · grey niches · payday loans
▸ new_project.init()
Discuss a project