I set up server-side tracking that only measures after consent

With server-side tracking, Google Analytics and ad pixels (small tracking scripts from Meta or LinkedIn) run through Cloudflare instead of in your visitors’ browsers. No tool starts before someone agrees in the cookie banner. If they decline, Google and Meta don’t even get their IP address.

Works with sites built on

Signs your tracking doesn’t wait for consent

You usually only see it in the browser’s developer tools, not on the website itself.

  • The Meta Pixel loads before anyone has clicked the cookie banner.

  • Every campaign adds another pixel, and the site gets slower.

  • Nobody on the team can say which tool starts when.

  • Ad blockers keep some of your visitors from being counted.

See for yourself which tools get data before anyone agrees

First a setup I often find, then the same page with Cloudflare Zaraz. Zaraz is a tag manager, the tool that loads Analytics and pixels on your site. Afterwards the browser only sends data to your own address.

What I often findNetwork tab, before any choice in the banner4 outside addresses
  • google-analytics.comGoogle Analyticsloads at once
  • connect.facebook.netMeta Pixelloads at once
  • snap.licdn.comLinkedIn Insightloads at once
  • googleads.g.doubleclick.netGoogle Adsloads at once
With Cloudflare ZarazNetwork tab, the same page1 own address
  • your-company.com/cdn-cgi/zarazone script for every toolwaits for the yes
  • google-analytics.comno call from the browsergone
  • connect.facebook.netno call from the browsergone
  • snap.licdn.comno call from the browsergone

Check it yourself: open the page in Chrome, press F12, pick the Network tab and reload. Don’t click anything in the cookie banner yet.

A Berlin software company now only measures after consent

Travel expense software · Berlin, Germany

Marketing still measures, but only visitors who agreed

Before
More than 250 pages in German and English moved to a new system. Tracking had to move with them, and no campaign data was to go missing.
Now
Today tracking only starts once visitors agree. Marketing still sees what its campaigns bring in.
Pages
more than 250, German and English
Together with
the client’s tracking team
“I’ve had the pleasure of working with Christian twice now on Google Tag Manager implementations, and I’d hire him a third time without hesitation. […] What sets Christian apart is that he doesn’t just execute, he actively flags issues you didn’t know to look for.”
Taras MelnychenkoMarketing Ops, WebflowRecommendation on LinkedIn

Why your visitor numbers get smaller afterwards

  • Google Analytics counts fewer visitorsIf Analytics used to run before consent, exactly the visitors who declined are now missing. You only count people who agreed.
  • Late consent isn’t lostSomeone who agrees after a few seconds is still counted. Zaraz then sends the held-back data.

In the free intro call, we’ll work out together how your numbers will change.

You keep measuring and stay within the consent rules

Four things change when your tracking runs through Cloudflare.

Every tool gets its own category in the cookie banner. If a visitor declines, Google and Meta get nothing.

Cookie settingsno choice made yet

Only after consent

do the tools start. If a visitor declines, Google and Meta get nothing.

How the switch works

At the end we put the numbers from before and after side by side.

  1. InventoryI list every tool your website loads and check whether it waits for consent.Result: A list of every tool, showing which ones wait for consent
  2. Add your domain to CloudflareI add your domain to Cloudflare and carry over your email settings so your email keeps arriving. I plan the date with your IT.Result: Your domain on Cloudflare, with your email still arriving
  3. Move the toolsI set up the tools in Cloudflare Zaraz, each with its own category, and remove the old scripts.Result: Your tools in Zaraz instead of in your website’s code
  4. Compare numbersWe put your numbers from before and after side by side and explain where differences come from.Result: A before-and-after comparison that explains the differences

What tracking on Cloudflare costs

You get scope and price in writing before I start.

Up to 1 million events a month, e.g. page views
free
Each further million
$5, as of October 2026
Moving your tools
price after the intro call
Book a call

Talk to me, or compare on your own first

In a call we check your site together. The comparison lets you read in your own time which tag manager fits you.

30-minute intro call

We look together at where your website sends data. Afterwards you know which tools start too early and what the switch costs.

Book a callFree, by phone or video

Zaraz or Google Tag Manager

The comparison shows what Zaraz can do, where Tag Manager fits better and what both cost.

See the comparisonFree, no sign-up

Or go straight to a topic

Questions about server-side tracking

With server-side tracking, tools like Google Analytics or the Meta Pixel no longer load in your visitors’ browsers. A server, in my setups Cloudflare, receives the data and only passes it to the tools that have consent.

The best-known options are Google Tag Manager with its own server, which you run on Google Cloud or through services like Stape, platforms like JENTIS, and Cloudflare Zaraz. Zaraz needs no server of your own; your domain only has to run through Cloudflare. What each option costs is in the comparison Zaraz vs Google Tag Manager.

It’s worth it when you run ads on Google, Meta or LinkedIn and want to see which ad brings inquiries. Or when your data protection officer requires that no tool starts before consent. For a small website without ads, a visitor count without cookies is often enough.

Zaraz is Cloudflare’s tag manager. It runs Google Analytics, the Meta Pixel and other tools on Cloudflare and comes with its own cookie banner, where visitors allow tools by category. Your domain needs to run through Cloudflare for it.

Server-side tracking meets the GDPR, the EU’s data protection law, when it’s set up correctly. Zaraz alone doesn’t make tracking compliant. A new tool starts out with no category and runs without consent. That’s why I check every tool before launch. The German law on this (§ 25 TDDDG) says you need consent before a tool stores or reads anything on your visitor’s device. The legal sign-off comes from your data protection officer.

Yes. Server-side tracking doesn’t replace consent. With it, the tools follow the choice in the banner. Zaraz comes with its own cookie banner for this.

Your Analytics account (the property) and your reports stay. The data just comes through Cloudflare. Out of the box, Zaraz sends page views, session starts and first visits. I set up scroll depth, downloads and outbound clicks as separate events.

The setup depends on how many tools move and whether your domain already runs through Cloudflare. You get a price after the intro call. Cloudflare includes one million Zaraz events a month for free, each additional million costs $5 (as of October 2026). A page view counts as one event.

Guides on this topic

Christian SchmittChristian SchmittWeb developer in Bremen, Germany30 minutes, free

After our intro call, you’ll get a written quote for your website.