Server-side tagging · Google Tag Manager · GA4 and Google Ads

Server-side tagging setup:
your tags on your own server and your own domain,
after checking that it is the fix you need.

Ihor Odariuk sets up server-side Google Tag Manager for service businesses: a server container, a tagging server in your own Google Cloud project on your own domain, GA4 and Google Ads conversions moved to it, and the duplicate browser tags removed. He also tells you when a cheaper option does the same job.

Server-side tagging moves your tracking tags from the visitor's browser to a server you control. The browser sends one stream of data to that server, and the tags run there before anything goes to Google Analytics, Google Ads or other vendors. It makes pages lighter, gives you control over what each vendor receives, and lets cookies be set by your own domain. It costs money every month and adds a system to maintain, so it is worth building only when those are the problems you have.

Tagging server in your own Google CloudOn your own domain, not the default cloud oneGA4 and Google Ads conversions testedCheaper options checked first
Before building

First, is server-side tagging the right fix?

Many tracking problems in service businesses sit where a server container never looks. A phone call is not an event in your container unless something sends one. A lead whose source the dispatcher left blank in the CRM stays blank. A conversion that counts the wrong action sends the same wrong number to Google Ads from a different machine.

On one appliance repair site I measured about 75 real form leads in a month while the CRM credited the website with three jobs, because jobs were typed in by hand without a source. No tag setup, in the browser or on a server, closes that gap. So the setup starts with a short check of where your measurement breaks.

The full decision guide, with Google's cost figures and the cheaper alternatives, is in when server-side tagging pays off.

The setup

What I build, in order

01
Server container and tagging server
A server container in your Tag Manager account and a tagging server plus a preview server in your own Google Cloud project, with at least two instances as Google recommends, and request logging set so it does not run up charges at high traffic.
02
Your own domain
The tagging server moved off the default cloud domain, where it can only set JavaScript cookies, onto a subdomain or the same origin as your site, so server-set cookies work. The choice depends on what your CDN or host can forward.
03
Website data sent to the server
The Google tag on the site pointed at the tagging server, and the requests checked in preview to make sure the GA4 client claims them.
04
GA4 and Google Ads tags on the server
GA4 events and Google Ads conversions set up in the server container, with only real leads counted as conversions. Each one is tested on a real submission before publishing.
05
Duplicates removed and documented
The browser tags that the server now replaces are removed, so nothing is counted twice, and you get a written list of every tag, trigger and setting, plus a note on keeping the tagging server updated.

Google's documentation for each step, in the same order, is in the server-side GTM setup guide.

Limits

What server-side tagging will not do

It will not tell you which calls became jobs, and it will not repair a conversion that counts the wrong action. Those are fixed in call tracking, in the conversion setup and in the CRM, and they usually come first.

It also does not replace offline conversion import. If you want Google Ads to bid toward booked jobs rather than form fills, that is done by sending outcomes from the CRM, covered in offline conversion tracking from your CRM.

FAQ

Common questions about server-side tagging setup.

Only if your problem is in the browser: too many tags slowing the page, data going to vendors you want to control, or cookies that do not last. If you cannot say how many of last month’s Google Ads conversions became paid jobs, or if most leads are phone calls, server-side tagging is not the first fix, and I will tell you that before any work starts.

Two separate costs. Google Cloud bills you directly for the tagging server: Google’s own estimate is about $45 a month per server, with at least two recommended, so about $90 a month, plus logging charges at high traffic. My work is from $599, a flat fee, listed on the pricing page.

Often, yes. Google tag gateway for advertisers serves the Google tag from your own domain through your existing CDN or load balancer, with no tagging server to run, and Google recommends it for the most durable tag setup. Offline conversion import from your CRM changes what Google Ads bids toward, which server-side tagging does not. Both are checked before recommending a server.

You do. The server container lives in your Tag Manager account and the tagging server in your own Google Cloud project, billed to you. You get a written record of every tag, trigger and setting, so another contractor can take it over.

Yes. GA4 data reaches the server through the Google Analytics client that server containers include, and Google Ads conversion tags can run on the server. Each conversion is tested on a real submission in preview before publishing, and the old browser tags are removed so nothing is counted twice.

Work With Me

Find out whether you need a tagging server.

Send me your site and what you are trying to measure. I will tell you in writing whether server-side tagging is the fix, or what is, free and without a call.