- Google sizes a server-side GTM server at about $45/month (1 vCPU, 0.5 GB, always-on CPU) and recommends at least 2 instances, roughly $90/month for production.
- Small sites can run Cloud Run with min instances 0 for close to nothing, accepting cold starts.
- Stape has a free plan (10K requests) and paid plans from $20/month; every incoming hit, including gtm.js loads, counts as a request.
Server-side tagging moves your tracking from the visitor's browser to a server you control. The browser sends one stream of data to your own subdomain (say data.yourstore.com), and a server-side Google Tag Manager container forwards it to GA4, Google Ads, Meta and the rest.
The setup is well documented. The cost isn't, and estimates online range from "free" to hundreds a month. This guide explains where the money actually goes, with numbers from Google's own documentation and Stape's published pricing.
What you're paying for
A server-side GTM container is a Docker image that has to run somewhere. You pay for:
- Compute: the server instances that receive and process each hit.
- Requests and network egress: every incoming hit, plus the outgoing calls to GA4, Meta and others.
- Logging, if you keep request logs (on by default in Cloud Run, and it adds up).
- Your time: setup, monitoring, updates and debugging. This is often the biggest cost, and it never shows up on an invoice.
Option 1: Google Cloud Run (self-hosted)
When you choose automatic provisioning in GTM, Google creates a Cloud Run service in a new Google Cloud project for you. Its sizing guidance is conservative.
According to Google's setup guide, each tagging server in its recommended configuration (1 vCPU, 0.5 GB memory, CPU always allocated) costs approximately $45 a month. Google also recommends running a minimum of 2 instances to reduce the risk of data loss if one fails. That puts the production baseline at roughly $90 a month, before traffic-based scaling and before the separate preview server.
Cloud Run scales up with load. The max-instances setting is your worst-case bill, not what you normally pay.
The low-traffic way to run Cloud Run
Many small and mid-size sites don't need two always-on instances. With minimum instances at 0 and request-based billing:
- you pay close to nothing when there's no traffic
- Cloud Run's free tier absorbs a lot of small-site volume
- the trade-off is cold starts: the first request after an idle period waits a few seconds while an instance boots
For analytics hits that's usually acceptable, because they aren't page loads the visitor waits for. For high-revenue stores during campaigns, it isn't. Run at least one warm instance.
Turn off request logging if you don't need it. By default Cloud Run logs every request, and on a busy site Cloud Logging can cost more than the compute.
Is your GA4 & GTM setup collecting the right data?
Get a senior review of your tags, triggers, data layer and consent setup, with a prioritized fix list your developers can act on.
Option 2: Stape (managed hosting)
Stape is the most widely used managed host for server-side GTM. You connect your container, and Stape runs the infrastructure on Google Cloud.
- Free plan: 10,000 requests a month. Good for testing, not for production.
- Paid plans start at $20 a month ($17 a month billed annually), and the top self-serve plan is $200 a month.
- What counts as a request: every incoming hit to your server container, including script loads like
gtm.jsandgtag.js. Outgoing calls to vendors don't count. - One plan covers one container and one site. Multiple sites need multiple plans.
The big advantages are predictable billing and convenience features: custom loader paths, built-in monitoring, and ready-made Meta Conversions API and other integrations.
Cloud Run vs Stape at a glance
| Google Cloud Run | Stape | |
|---|---|---|
| Billing | Usage-based (compute, requests, logs, egress) | Fixed monthly plan by request volume |
| Small site | Often a few dollars or free with min-instances 0 | Free plan, or about $20/mo |
| Production baseline | ~$90/mo for Google's 2-instance recommendation | Plan sized to requests |
| Setup effort | Higher: GCP project, domain mapping, scaling | Lower: guided setup, custom domain built in |
| Control | Full: your project, your logs, your region | Less: managed platform |
| Best for | Teams with GCP skills or strict data policies | Most marketing teams and agencies |
How to estimate your request volume
Start with GA4 for the last 30 days:
- Events: Reports → Engagement → Events, total event count.
- Page views: each page view usually adds a script load (
gtm.jsorgtag.js) if you serve scripts through the server container. - Other vendors: if the browser also sends Meta or TikTok events to your server, add those too.
A store with 300,000 page views and 1.2 million GA4 events a month might send roughly 1.5 to 2 million requests to its server container. That's comfortably inside a mid-tier Stape plan, or a few dollars of Cloud Run compute with modest settings.
When server-side tagging is worth it
Server-side tagging solves specific problems. It isn't an upgrade every site needs.
It's worth it when: - you spend meaningfully on paid ads, and lost conversions hurt bidding - you need Conversions APIs (Meta, TikTok) with deduplication against browser events - you want first-party cookies set from your own domain, with longer lifetimes than script-set cookies in Safari - you need to strip or control data before it reaches vendors (PII, IP addresses) - page speed matters and you want fewer third-party scripts in the browser
It's probably not worth it yet when: - the browser-side setup is still broken. Server-side forwards bad data just as faithfully as good data. - you only run GA4, with no ads and no CAPI needs - nobody on the team will monitor it
The hidden costs
- Preview server: Cloud Run setups need a separate preview service for GTM's debug mode.
- Custom domain mapping: first-party cookies require serving from your own subdomain, which means a load balancer or domain mapping on Cloud Run (managed hosts include this).
- Maintenance: container image updates, scaling reviews before peak season, and checking that vendor APIs haven't changed.
- Debugging time: server-side adds a second container to debug. Budget time for it during setup.
Bottom line
For most small and mid-size sites, hosting is cheap: free to about $20 a month on either platform. Google's $90-a-month baseline is for production setups that need redundancy. The real cost is getting the setup right and keeping it right.
If you're considering server-side tagging, start with a clean browser-side implementation. Our GA4 & GTM audit tells you whether server-side will actually pay off for your traffic and ad spend, and what to fix first.