← Back to blogANALYTICS · STEP-BY-STEP

Server-side tagging via GTM

Server-side tagging moves the collection of tracking data from the browser to your own server. More reliable in a cookieless world, at the cost of hosting and management overhead.

Organiq Grow · 25 September 2026 · 10 min read

Direct answer

Server-side tagging via Google Tag Manager moves the collection and forwarding of tracking data from the visitor's browser to a server you control. That makes measurement more reliable in a cookieless, ad-blocker-heavy world, at the cost of extra hosting and implementation time.

Why server-side tagging in 2026

Third-party cookies have been largely phased out in Chrome since 2025. Safari's Intelligent Tracking Prevention (ITP) has long blocked third-party and even some first-party tracking scripts after a period of time. Ad blockers block known tracking domains such as googletagmanager.com and google-analytics.com client-side, but not a subdomain under your own control.

The result of server-side tagging: more reliable, more complete data, precisely at the moment client-side tracking is showing more and more gaps.

How it works: client container vs server container

The familiar GTM client container stays in the browser and collects events as usual. The difference is the destination: instead of sending straight to Google or Meta, the client container sends events to your own server container. That server container enriches and cleans the data, then forwards it to GA4, Google Ads, Meta Conversions API and other destinations.

Advantages

First-party cookies on your own domain, with less risk of being blocked by browsers or ad blockers. Control over exactly which data goes to which third party, a privacy advantage. The ability to add your own headers or enrichment, such as server-side user-ID matching. And less JavaScript weight in the browser, which also benefits your INP score.

Disadvantages

Hosting costs, indicatively between ten and forty euros a month for a small-to-medium SME volume via a service like Cloud Run or Stape. Extra technical complexity and maintenance. And you need someone able to monitor the setup for errors and data drift.

Practical setup in 5 steps

The basic setup follows the same order everywhere:

  1. Create a Google Cloud Platform project, or choose a managed solution like Stape.io if you don't want to manage your own infrastructure.
  2. Set up a server container via Cloud Run or the Stape platform and connect it to your own subdomain, for example sgtm.yourdomain.com.
  3. Arrange an SSL certificate for that subdomain — via a load balancer on Cloud Run, usually handled automatically on Stape.
  4. Update your client container so events are sent to the new server container endpoint instead of directly to Google.
  5. Connect the server container to your final destinations: GA4, Google Ads conversion tracking, and the Meta Conversions API for server-side Meta tracking.

When server-side tagging makes sense

E-commerce with substantial volume, lead generation with a high conversion value (above one hundred euros per lead), and businesses running significant ad spend where attribution accuracy directly affects ROAS decisions.

When it's not yet worth it

Small SMEs with a simple contact form and a limited ad budget: the extra cost in time and hosting often doesn't outweigh the data gain. Start with the basics first — Consent Mode v2 and correct GA4 events — before taking this step.

Want to know if server-side tagging pays off for your situation?

Request an advisory call →
FREQUENTLY ASKED QUESTIONS

Everything about server-side tagging

The most common questions about setup, cost and the Conversions API.

Is server-side tagging the same as the Conversions API?

No, but they work well together. Server-side tagging is the infrastructure, your own server processing events. The Conversions API is a specific integration, for example Meta's, that receives events server-side through that infrastructure (or independently).

Does this automatically make my data more GDPR-compliant?

Server-side tagging itself is not a substitute for Consent Mode or a correct cookie banner, but it does give you more control over exactly which data goes to which third party, which helps with data minimisation.

Does it work together with Consent Mode v2?

Yes, and the combination reinforces both. Consent Mode determines what may be measured; server-side tagging improves the reliability of what is actually measured, with consent.

Do I need a developer?

Usually yes for the initial setup, particularly for the cloud infrastructure and testing. Maintenance afterwards is more limited but requires periodic checks for errors.

What does it actually cost?

Hosting is indicatively between ten and forty euros a month, depending on volume, separate from any implementation hours. Request a tailored quote for your situation.

Can I set this up myself with a GTM template?

Partly. Google and Stape offer templates that speed up the setup, but the configuration for your specific tags and destinations still requires custom work.

DIY or outsource?

Ready to apply what you just read? These are the logical next steps if you'd rather leave it to an agency.

Keep reading

More reliable data, better decisions?

Set up server-side tagging
that holds up, even without cookies.

We build a server-side tagging infrastructure that fits your volume and connect it to GA4, Google Ads and Meta CAPI.