Advertising
Server-side tracking for Google Ads with server-side GTM
Copy for AI
Server-side tracking moves conversion measurement from the browser to a server you control.
That sounds technical. But it fixes a concrete problem.
A growing share of your conversions never reaches Google Ads, because adblockers, browser limits and cookie blocking intercept browser-side measurement.
The verdict: server-side tracking isn’t a gadget or a way around consent. It’s the pipe that makes sure the conversions you’re allowed to measure actually arrive.
This guide belongs with our overview of what SEA is. Server-side tracking sits exactly where paid media and reliable data meet.
What is server-side tracking exactly?
It’s a setup where the browser sends data to your own server first, and that server forwards it to Google Ads.
How browser-side tracking works
With classic tracking, your site loads JavaScript that sends a signal straight to Google from the visitor’s browser.
Every conversion, page view and click travels through that browser. So everything the browser blocks or limits blocks your measurement too.
What changes with a server in between
With server-side tracking, the browser talks to an intermediate station you own, not to Google directly.
In most setups, that station is a server-side container of Google Tag Manager. Google describes it as a container that runs on a server you control, in your own Google Cloud project or another environment you choose.
Here’s the difference in one picture:
The core difference is control
In the browser, the visitor and their software decide what happens to your tags.
On your own server, you decide.
That’s a more stable place to measure.
Why does browser-side measurement leak more and more?
Because browsers and users shield themselves ever further against tracking. Each layer eats into your conversion signal.
4 leaks in the signal
4 things stop conversions from arriving:
- Adblockers. Many block ad-platform scripts by default. A conversion reported through a blocked script never arrives.
- Browser limits. Safari’s Intelligent Tracking Prevention caps cookies set by scripts at 7 days and blocks cross-site cookies by default.
- Cookie blocking. Visitors who refuse or delete ad cookies drop out right at the conversion.
- Network loss. Slow connections and cut-off sessions make browser pings miss their target.
Say a buyer clicks today and converts on day 8.
With a 7-day cap, that click can fall out of view.
Why the leak is dangerous
It’s gradual. So nobody notices.
Your campaign may perform well while your dashboard shows fewer conversions than really happen. You then steer budget on an incomplete picture: the opposite of paid that buys pipeline instead of clicks.
How does server-side tracking catch that loss?
In 2 ways: your own subdomain, and processing outside the browser.
1. Your own subdomain
Your data travels via your own subdomain, not a recognisable ad domain.
So it’s blocked less often.
Google calls that same-origin setup a best practice. A tagging server on its default cloud domain runs in a third-party context and can only set JavaScript cookies.
A subdomain such as metrics.example.com gives you more durable, server-set cookies.
2. Processing on your own server
The signal is processed on a server that doesn’t depend on browser cookie lifespans.
Nor on scripts the visitor can block.
Why the whole account benefits
Smart bidding leans entirely on conversion data. The more complete that data, the better bids learn where your value sits.
So better measurement can lift your return without touching a campaign setting. For anyone steering a pay-per-click budget precisely, it’s the foundation under every optimisation.
One caveat: it doesn’t create conversions.
It stops real ones vanishing on the way.
How do you set up server-side Google Tag Manager?
With 4 parts that have to fit together.
If one fails, the chain breaks.
Step 1: Create a server-side container
In Google Tag Manager you create a separate server container next to your ordinary web container. It runs on a dedicated environment and receives what your site sends.
The container type is chosen when you create it:
New to Tag Manager itself? Start with what Google Tag Manager is.
How to set up that container beyond Google Ads is in our guide to server-side tagging. As a managed host you can use Stape, for example.
Step 2: Run it on your own subdomain
Point a measurement subdomain of your own domain at the server container.
Your data then travels over your own domain, not over an external ad domain.
Step 3: Forward events to the server
Your web container no longer sends events straight to Google.
It sends them to your server container. That container forwards them to Google Ads.
Step 4: Link the conversions
In the server container, you set which events go to Google Ads as conversions, with the correct conversion labels.
On the Google Ads side, check that the matching conversion action is primary, so bidding learns from it. Here’s how that looks in our own account:
The contact form conversion action in our own Google Ads account, October 2026: Primary, data-driven attribution, 90-day click-through window.
That action uses a 90-day click-through window. A fuller signal only helps if it feeds the primary action.
Keep it in line with consent
Server-side tracking isn’t a detour around privacy rules, and it must never be.
You still forward data only for visitors who gave consent.
The gain: you lose less signal from them.
Our guide on setting up consent mode v2 shows how. It works seamlessly with server-side.
Which Google Ads server-side tracking tools and solutions can you use?
There are 3 routes: host the server container on Google Cloud, rent a managed host, or send conversions from your CRM.
Which one fits depends on who maintains it and where your conversions really happen.
The 3 routes side by side
| Route | What it is | Best for | Watch out |
|---|---|---|---|
| Google Cloud Run | Server GTM container in your own Google Cloud project | Teams with someone who manages cloud billing and updates | You run and monitor the servers yourself |
| Managed host, such as Stape | A provider runs the server container for you | Marketing teams without a developer on hand | A paid plan once you outgrow the free tier, and one more vendor in your data chain |
| CRM upload (offline conversions) | Your CRM sends qualified leads and deals back to Google Ads | B2B with long sales cycles | Only works if you store the click ID with each lead |
Route 1: Google Cloud Run
Google’s own setup runs the container on Cloud Run. You can provision it straight from Tag Manager or manually in Google Cloud.
Watch out: Google recommends at least 2 instances, to reduce the risk of data loss when a server goes down.
Set a billing alert as well. Costs grow with traffic.
Route 2: A managed host
A managed host takes the servers, scaling and updates off your plate.
You still build the tags in your own server container. So the Google Ads setup from the steps above stays the same.
Route 3: Uploading conversions from your CRM
This one isn’t tag-based. It sends outcomes that happen after the form, like a qualified lead or a signed deal.
Is server-side conversion tracking the same as offline conversion import?
No. Server-side tracking moves the website measurement to your server. Offline conversion import sends results from your CRM later on.
Google assigns a unique Google Click ID (GCLID) to every ad click. You store it with the lead and send it back with the conversion.
In B2B you usually want both: the form lead via the server, the deal via the CRM. The how-to is in importing offline conversions into Google Ads.
Can the same setup track other ad platforms?
Yes. Server-side ad tracking isn’t limited to Google: one server container can feed several ad platforms.
For Meta, that runs through the Meta Conversions API.
Rule of thumb: start with Google Ads, then add platforms to the same container.
Server-side tracking vs consent mode: what’s the difference?
They solve different problems, so you need both.
Two jobs, side by side
| Consent mode | Server-side tracking | |
|---|---|---|
| Job | decides who may be measured | makes sure that signal arrives |
| Works on | how Google tags behave | where data travels |
| Without the other | signal still lost to blocking | you’d measure data you may not process |
Consent mode adjusts how Google tags behave based on the visitor’s choices. With ad_user_data denied, for example, no user data goes to Google for advertising.
Server-side tracking decides how reliably you receive the signal from the visitors you may measure.
The gate and the pipe
Consent mode is the gate that decides who may enter. Server-side tracking is the sturdy pipe that delivers what may enter.
Together they form the core of a privacy-first approach to Google Ads with Consent Mode v2 and server-side tracking.
The same pipe also fills your remarketing audiences more completely.
Where does server-side tracking fit in your growth engine?
It strengthens the measurement foundation your whole paid steering rests on.
If that foundation leaks, measurement, bids and attribution all weaken at once.
If it holds, you steer on complete data.
One chain from click to deal
We treat server-side tracking as part of the measurement architecture, not as a gadget.
If SEA is the fast acquisition layer of your growth engine, with offline conversions and lead-to-deal attribution, a reliable signal is the condition for that attribution to be right at all.
Connect it to how you measure conversions in Google Ads and which attribution models you use. That keeps the chain from click to deal closed.
Rather not build it yourself? Our google ads agency sets up the full chain.
Frequently asked questions
Does server-side tracking replace consent mode?
No. Consent mode decides who may be measured; server-side tracking makes sure that permitted signal arrives. You need both.
Does server-side tracking create extra conversions?
No. It recovers conversions that happened but got lost on the way. It never invents new ones.
Why use your own subdomain?
Google calls it a best practice. You get more durable, server-set cookies.
Ready to make your measurement future-proof?
If your reported conversions trail your real enquiries, fix the measurement before the campaigns.
Get in touch and we’ll walk through your measurement setup with you, from tag to deal.
Free website scan
Enter your website and get an automatic scan within minutes, with concrete technical and SEO improvements. No sales pitch.
We only use your details for your scan. No spam, unsubscribe anytime.