Server-Side GTM: The Practical Guide for Agencies
If you run a marketing agency managing client tracking, you have almost certainly hit the same frustrations: adblockers silently stripping your conversion pixels, Safari killing cookies after 7 days, and clients asking why their Google Ads data doesn't match their CRM. Server-Side Google Tag Manager (sGTM) solves all three — and despite sounding intimidating, it is one of the highest-ROI moves an agency can make in 2026.
What Server-Side GTM Actually Does
In client-side GTM, every tag fires directly from the visitor's browser. This means adblockers block 15-30% of conversion events, Safari limits cookies to 7 days, and tag scripts add weight to every page load. Server-Side GTM flips the architecture: you run a GTM container on a cloud server, the browser sends a single request to your subdomain (e.g. measure.yourclient.com), and that server relays data to Google, Facebook, and other endpoints. Because the request goes to your domain rather than google-analytics.com, adblockers cannot block it. And because the server sets cookies via HTTP headers rather than JavaScript, Safari's 7-day limit does not apply.
What This Means For Your Agency
When you migrate a client to sGTM, three things improve immediately:
1. Conversion Data Becomes More Accurate
The 15-30% of events previously blocked by adblockers start flowing again. For an e-commerce client spending €50,000/month on Google Ads, recovering even 15% of lost conversions is the difference between a campaign that looks break-even and one that shows clear profitability.
2. Remarketing Audiences Grow
Because first-party cookies survive longer, remarketing lists in Google Ads and Facebook populate faster and stay larger. For B2B clients with long sales cycles, a visitor who browsed pricing pages 25 days ago is still in the audience when the sales team runs a retargeting campaign.
3. GDPR Compliance Becomes Easier
With sGTM, you control data before it leaves your server. You can strip PII (email addresses, phone numbers, IP addresses) before forwarding events to Google or Facebook — something impossible in client-side GTM where raw data leaves the browser directly.
How Much Does It Cost?
Google Cloud Run costs approximately €30-50/month for typical agency traffic volumes, plus a small server instance for preview mode. Total: roughly €50-80/month per client. For the data-quality improvement, this is one of the cheapest infrastructure upgrades an agency can make.
Getting Started: The 4-Step Setup
- Create a Google Cloud project — enable Cloud Run and required APIs (10 minutes).
- Create a GTM Server container — in Tag Manager, choose "Server" as the target. Google provides an auto-deploy script to Cloud Run.
- Point a subdomain at your cloud instance — map
measure.yourclient.comto the Cloud Run URL via DNS. - Migrate client-side tags — update GA4 and ads tags to send events to the server container, which forwards them onward.
The first setup takes about 2 hours if you have never done it. After one or two, it drops to 45 minutes.
North Digital has built server-side containers for agencies across Europe — get in touch and we will have yours running by the end of the week.