Skip to main content
CookieBeam

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.

Template wizard

Three destinations, ready in minutes

The setup wizard builds both web and server containers for GA4, Meta Conversions API, and Google Ads. For anything else, add community templates to your own container.

  • Google Analytics 4

    Browser GA4 tags send hits to your server URL. A server GA4 tag forwards them to Google. You only need the measurement ID.

  • Meta Conversions API

    Browser pixel plus server CAPI tags. The server tags wait for ad_storage consent before sending. Your API token never leaves the server.

  • Google Ads

    Conversion tags run in the server container. They read Consent Mode state and send without ad cookies when ad_storage is denied.

  • Everything else

    Add any community template to your own container. Those tags don't read consent on their own, so add triggers on the incoming consent values.

Read the server-side tagging docs

What you can verify

  • Google's official image

    Every container runs the same tagging server image Google publishes for Cloud Run deployments.

  • Only 2xx requests are billed

    Health probes, CORS preflights and error responses don't count toward your monthly limit.

  • Preview server included

    Every container comes with a preview server for GTM preview mode. No separate setup or charge.

  • Hosted in Frankfurt

    Containers run in Frankfurt, Germany. Your tags then send data to their destinations, which may be outside the EU.

  • Credentials stay on the server

    API tokens like your Meta CAPI key are encrypted with AES-256-GCM and never sent to the browser.

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: Pro20ドル / month

This is a ballpark. Your actual count depends on your tag setup and how many events each page fires.

Estimate your monthly requests

  1. In GA4, go to Reports > Engagement > Events. Set the date range to the last 30 days.
  2. Your total event count is roughly your monthly server request count.
  3. Page views often trigger a script request too, so add your page view count for a conservative estimate.
Add-on pricing, per container per month
TierRequests / monthPrice / month
Pro500KRequests / month20ドル/ month
Pro+2MRequests / month50ドル/ month
Business5MRequests / month100ドル/ month
Business+10MRequests / month150ドル/ month
Enterprise20MRequests / month200ドル/ month
Enterprise+50MRequests / month300ドル/ month

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

Managed hosting vs self-hosting on Cloud Run

Cloud Run estimate: approximately USD 45 per instance on the CPU-always-allocated pricing model. The recommended two tagging servers cost about USD 90 a month; Google's guide doesn't price the preview server. Source: Google's server-side tagging setup guide, read 26 November 2026.

FeatureCookieBeamCloud Run (DIY)
Starting price20ドル/mo for 500K requests (16ドル/mo billed yearly)About 90ドル/mo (2 servers; preview extra, not priced by Google)
What’s billedSuccessful GET and POST requests onlyCompute time
EU hostingFrankfurt (only region)Any Google Cloud region
Custom domainCNAME and TXT verificationManual setup (load balancer, SSL)
Built-in CMPYes, consent banner includedNo
Consent wiringConsent Mode carried from banner to serverManual implementation
Template wizardGA4, Meta CAPI and Google Ads containersGoogle’s sample containers
InfrastructureFully 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 are the servers hosted?

Frankfurt, Germany. The destinations your tags forward to (Google, Meta, ad networks) may process data outside the EU, in their own regions.

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.

What happens during a traffic spike?

Each tier has a per-minute request ceiling sized from its CPU allocation. Requests above it get a retry-in-60-seconds response and aren't billed. Upgrading to a higher tier raises the ceiling.

Can I see request logs?

There are no customer-facing access logs today. Use the preview server to debug your tags, and check each destination's own tools: GA4 DebugView, Meta Events Manager, or Google Ads conversion diagnostics.

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 upgrades on, the container moves to the next tier at that tier's price and traffic continues without interruption. With them off, nothing changes this month: your tier and your bill stay the same, and the container keeps running. The next billing month starts on whichever tier that month's usage needed. There are no overage fees either way.

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.

AltStyle によって変換されたページ (->オリジナル) /