Skip to main content

Server-side Google Tag Manager

Move your tags off the browser

CookieBeam hosts a managed sGTM container in the EU. Consent signals travel from the banner to the server, so your tags fire with the right permissions.

Runs
Google’s official tagging server
Hosted in
Frankfurt, Germany
Billed on
Successful requests only
From
€20 per container a month

Why teams move tags to a server

Data falls through the cracks

Ad blockers and browser limits affect tags that load from third-party domains. A container on your own subdomain changes where requests go, but it doesn’t guarantee that every event arrives.

Too many tags, too slow a page

Client-side tags compete for the main thread. Each vendor script adds weight, blocks rendering and pushes your Core Web Vitals in the wrong direction.

Consent has to follow the data

A banner on the page isn’t enough if the server container fires tags without checking consent state. The CMP and the tagging server need to talk to each other.

How it works

Four steps from GTM to live

No cloud project to set up and no servers to patch. You keep your GTM container, and we run it.

  1. 1

    Enable sGTM on your banner

    Open Server-Side GTM in the dashboard and enable it for a banner. CookieBeam provisions a container and a preview server in the EU.

  2. 2

    Paste your Container Config

    Copy the base64 Container Config from your GTM account (Admin > Container Settings) and save it. The container starts on the managed syncingbeam.com endpoint.

  3. 3

    Add your tracking subdomain

    Point a subdomain like track.example.com to CookieBeam with a CNAME and a TXT record, then verify it. After verification, measurement traffic goes through your own domain.

  4. 4

    Use the template wizard

    Download ready-made web and server containers for GA4, Meta Conversions API and Google Ads, with Consent Mode v2 signals wired in.

Consent

Most sGTM hosts leave consent to a separate CMP you have to integrate yourself. With CookieBeam, the banner and the server container are the same product.

  • Consent Mode v2 travels with every hit.The banner captures consent, and each request to the server carries ad_storage, analytics_storage, ad_user_data and ad_personalization.
  • Google tags read consent on the server.GA4 and Google Ads tags in the server container adjust to the incoming consent state, with no extra variables or triggers.
  • Generated Meta tags require consent.The Meta CAPI server tags from the template wizard check for ad_storage consent before they fire.
  • Other tags need setup.Other server tags don’t read consent on their own. Add triggers that check the incoming consent values; the docs show how.
One purchase event, followed from the browser to each destination

1 · Visitor’s browser

yourshop.com

CookieBeam banner

Analytics
Granted
Advertising
Denied

The web container sends the event with the consent state attached.

2 · Your tagging server

track.yourshop.com

  • Google’s official tagging image
  • Hosted in Frankfurt (EU)
  • Your subdomain, via CNAME
event: purchase
analytics_storage: granted
ad_storage: denied

3 · Destinations

  • GA4Sent
  • Google AdsSent without ad cookies
  • Meta Conversions APIHeld

Google tags read the consent state and send without ad cookies. The Meta server tag waits for advertising consent.

What’s included

  • Managed EU hosting

    Your container runs on infrastructure in Frankfurt, EU. No servers to provision or patch.

  • Custom first-party domain

    Serve measurement traffic from your own subdomain after a DNS verification step.

  • Template wizard

    Download pre-built GTM containers for GA4, Meta CAPI and Google Ads with Consent Mode already configured.

  • Consent signals built in

    The CookieBeam banner attaches Consent Mode v2 state to every hit. Google tags on the server read it automatically.

  • Encrypted credentials

    API tokens, such as your Meta CAPI token, are stored with AES-256-GCM encryption and never sent to the browser.

  • Preview server included

    Each container gets its own preview server, so you can debug tags in GTM’s preview mode.

  • Request-based billing

    You’re billed only for successful GET and POST requests. Probes, preflights and errors don’t count.

  • Automatic tier upgrades

    Turn on automatic upgrades and the container moves up a tier, at that tier’s price, when it crosses its limit. No traffic interruption, no overage fees.

Pricing

Add-on pricing, per container per month

  • Only successful requests are billed
  • 20% off with yearly billing
  • The first container on each team gets 14 days before billing starts
500K
Suggested tier: Pro€20 / month

An estimate. One page view often makes several requests; your GTM server logs show your real number.

Add-on pricing, per container per month
TierRequests / monthPrice / month
Pro500KRequests / month€20/ month
Pro+2MRequests / month€50/ month
Business5MRequests / month€100/ month
Business+10MRequests / month€150/ month
Enterprise20MRequests / month€200/ month
Enterprise+50MRequests / month€300/ month

Per container. Needs a CookieBeam plan or trial. Prices exclude VAT.

CookieBeam vs Stape vs self-hosting on Cloud Run

Stape details from stape.io and Cloud Run estimates from Google’s setup guide, as of November 2026.

FeatureCookieBeamStapeCloud Run (DIY)
Starting price€20/mo for 500K requests (€16/mo billed yearly)Free up to 10K requests; $20/mo for 500K ($17/mo billed yearly)About $145/mo (2 servers and preview)
What’s billedSuccessful GET and POST requests onlyAll incoming requests, including script loadsCompute time
EU hostingFrankfurt (only region)EU and global zonesAny Google Cloud region
Custom domainCNAME and TXT verificationCNAME, with CDN optionsManual setup (load balancer, SSL)
Built-in CMPYes, consent banner includedNo, third-party CMP requiredNo
Consent wiringConsent Mode carried from banner to serverConsent Parser variable, set up separatelyManual implementation
Template wizardGA4, Meta CAPI and Google Ads containersSetup wizard with integrationsGoogle’s sample containers
InfrastructureFully managedFully managedYou manage it

Questions

Do I still need consent for server-side tags?

Yes. Moving tags to the server doesn’t remove the obligation to collect consent. The ePrivacy Directive covers accessing information on a visitor’s device, wherever the processing happens afterwards. The CookieBeam banner collects consent on the page, and the transport carries it to the server container.

Is the endpoint first-party?

Not by default. The managed endpoint uses a syncingbeam.com subdomain. To serve traffic from your own domain, add and verify a custom subdomain like track.example.com.

Where is the data hosted?

The container runs in Frankfurt (EU). The data is then forwarded to the destinations your server tags send to, such as Google or Meta, which may be outside the EU.

What counts as a billable request?

Only GET and POST requests that return a 2xx response. Health probes, CORS preflight requests and error responses are not billed.

Can I bring my own GTM container?

Yes. Paste the base64 Container Config from your existing server-side GTM container, and it keeps your tags and triggers as they are. The template wizard is optional.

What happens if I go over my tier limit?

With automatic tier upgrades on, the container moves to the next tier, billed at that tier’s price, and traffic continues. With upgrades off, it stays at its current tier. There are no overage fees.

Do all server-side tags respect consent automatically?

Google tags such as GA4 and Google Ads read Consent Mode state on the server. The Meta CAPI tags from the template wizard check for ad_storage consent. Other server-side tags need to be set up to read and act on the consent signals.

Can I use this without a CookieBeam banner?

Server-side GTM is an add-on to a CookieBeam subscription. You need an active trial or paid plan with a banner to enable it.

Try server-side tagging with consent built in

Start a free trial. Your first container gets 14 days before billing begins.