Key points
- Server-side Google Tag Manager needs a running server. You either host it yourself (Cloud Run or any server that runs Docker) or rent it from a managed provider.
- Google's own Cloud Run guide recommends at least 2 instances for production and estimates each server at about US$ 45 a month, plus a separate preview server.
- Managed providers price by request volume. Stape, for example, lists a free plan up to 10K requests and paid plans from US$ 17 a month (billed annually) as of December 2026.
- Self-hosting on a VPS with Docker uses the same official image Google publishes. You trade a monthly fee for the work of keeping the server patched, monitored and on HTTPS.
- The right choice depends on traffic, on who maintains the server and on how much control you need over data and costs.
What you are actually paying for
A server-side GTM container does nothing until a tagging server runs it. Google publishes one Docker image for this, gcr.io/cloud-tagging-10302018/gtm-cloud-image:stable, and both Google's Cloud Run setup and its manual setup guide use it. Managed providers host the same kind of tagging server for you.
A working setup has three parts:
- The tagging server (or cluster). It receives requests from your website and forwards events to Meta, Google Ads, GA4 and others.
- A preview server. Google's manual setup guide asks for exactly one preview server, with
RUN_AS_PREVIEW_SERVER=true, so the Preview mode in GTM works. Without it, preview opens blank. - HTTPS on a domain you control. Both servers need an HTTPS URL. A first-party subdomain such as
sgtm.yourdomain.comis the usual choice.
The hosting decision is about who runs these three parts and how you pay for them.
Option 1: Google Cloud Run
Google's Cloud Run setup guide is the "official" path. Its production recommendations, as published today:
- Minimum 2 instances and maximum 10 for the tagging server, "to reduce the risk of data loss in case of a server outage".
- 1 vCPU and 512 MiB of memory per instance, and never more than one vCPU per instance.
- A preview server with 0 minimum and 1 maximum instance.
- An estimate of about US$ 45 a month per server, with the maximum instance count acting as the cost ceiling.
Google also suggests a billing alert to avoid surprises. With two always-on instances, the baseline lands near US$ 90 a month by Google's own estimate, before traffic spikes push more instances up. For a busy store that may be fine. For a lead generation site with a few thousand visits a month, it is a lot of capacity sitting idle.
Good fit: teams already on Google Cloud, sites with real traffic, companies that want Google's documented path.
Option 2: a managed server-side GTM provider
Managed providers run the image for you, handle scaling and HTTPS, and usually add their own extras: custom loaders, logs, connectors and support. You pay a monthly plan based on request volume.
Stape is the best known example. Its pricing page lists, as of December 2026:
| Plan | Monthly price | Requests |
|---|---|---|
| Free | US$ 0 | up to 10K |
| Pro | US$ 17 billed annually (US$ 20 monthly) | up to 500K |
| Business | US$ 83 billed annually (US$ 100 monthly) | up to 5M |
| Enterprise | US$ 167 billed annually (US$ 200 monthly) | up to 20M |
Prices change, so check the provider's page before you decide.
Good fit: teams with no one to maintain a server, agencies that want one dashboard for many clients, anyone who values support over control.
Option 3: your own server with Docker
Because the tagging server is a standard Docker image, Google's manual setup guide lets you run it "in other environments": a VPS, a dedicated server or a machine you already pay for. The guide lists what you need:
CONTAINER_CONFIG, copied from GTM under "Manually provision tagging server".PREVIEW_SERVER_URLon the tagging server, pointing to the HTTPS address of the preview server.- A health check on
/healthz. - A load balancer or reverse proxy with a timeout longer than 20 seconds.
On a single VPS, a common layout is two containers (tagging and preview) behind nginx or Caddy with a free TLS certificate. If you already run a VPS for your site, the extra cost can be close to zero. If you don't, VPS prices vary by provider and size, so compare current plans before you choose.
What you take on in exchange:
- Updates. Pull the
stableimage regularly and restart the containers. - Monitoring. If the server goes down, events stop until someone notices. An uptime check on
/healthzis the minimum. - Capacity. One small VPS is a single point of failure. That is acceptable for many lead generation sites and risky for high-volume ecommerce.
- Your time. Someone has to know Docker, DNS and TLS well enough to fix a broken certificate on a Friday.
Good fit: developers and agencies comfortable with Linux, lead generation sites with moderate traffic, and anyone who wants the data path and the bill under their own control.
A simple way to decide
Answer three questions:
- Who will maintain the server? If nobody on the team will open a terminal, choose a managed provider.
- How many requests per month? Count page views plus events you send. Low volume makes a VPS or a free managed tier attractive; high volume makes Cloud Run's autoscaling or a larger managed plan worth it.
- How much does a lost hour of events cost you? If an outage during a launch is expensive, pay for redundancy (Cloud Run with 2+ instances, or a managed plan that takes uptime off your hands).
There is no wrong answer here. The same container, the same tags and the same Meta Conversions API setup run on all three options, so you can start on one and move later by pointing your subdomain to a new server.
What stays the same on every option
Whichever host you choose, the tracking work is identical:
- Send an
event_idfrom the browser and reuse it on the server event, so Meta can deduplicate Pixel and Conversions API events. See Meta Conversions API deduplication. - Make sure the Pixel is installed only once. The free Meta Pixel & GTM checker lists every copy it finds on a public page.
- Fix Preview before you trust any test. If it opens blank, read Server-side GTM preview opens blank.
If you want to self-host
The 4-Layer Tracking Kit documents the self-hosted path end to end: the tagging and preview containers on a VPS with Docker, the nginx proxy, web GTM with event_id, the Conversions API and CRM deal stages sent back to Meta. It is a one-time purchase; hosting is paid to your own provider, and the same setup also works on a managed service if you change your mind.
FAQ
Is self-hosted server-side GTM free?
The software is free, but the server is not. You pay your VPS or cloud provider, and you take on updates, monitoring and HTTPS yourself.
How much does Google estimate for server-side GTM on Cloud Run?
Google's Cloud Run setup guide estimates about US$ 45 a month per server and recommends at least 2 instances in production, plus a preview server.
Can I move from a managed provider to my own server later?
Yes. Your server-side GTM container is the same wherever it runs, so you can provision a new server with the container config from GTM and point your subdomain to it.