Server-side tracking puts a server owned by the company between the website and the marketing tools. Instead of the browser sending data straight to GA4, Google Ads and Meta, it sends it to that server, which processes it and forwards it. The most common way to build it is server-side Google Tag Manager, which Google calls server-side tagging.
How it works
On a site with standard tags, each tool loads its own script in the visitor’s browser and sends data to its own domain. With server-side tracking, the site sends a single stream of events to a subdomain of the company, for example data.company.com. The server receives the event, decides which fields go to each platform and sends them from there.
This server does four things that browser tags cannot do:
- it sets cookies from the server, on the company’s domain;
- it removes fields before sending, such as the full IP address or URL parameters with personal data;
- it adds data that only exists on the store’s server, such as margin or payment status;
- it sends the same sale to Meta and Google by API, from a single event.
What you gain
Longer-lasting cookies, with one condition. Safari caps cookies created by JavaScript at seven days, and in some cases at 24 hours. Cookies set by the server on the company’s domain can last longer. Since 2023, Safari also caps at seven days cookies set by a server whose IP address is very different from the site’s. For the gain to be real, the tagging server has to be set up to share the site’s origin.
Fewer losses to blockers. Many blockers stop requests to well-known advertising and analytics domains. Requests to a company subdomain get through more often.
Control over the data. The company sees exactly what goes to each platform and can strip what should not go out.
A lighter site. With fewer third-party scripts in the browser, pages load faster.
What stays the same
Consent still rules. People who declined cookies should not start being tracked just because the data goes through a server. Server-side tags read the Consent Mode signals and respect the visitor’s choice, and third-party platforms should only receive events from people who accepted. Some vendors sell server-side as a way around a refusal, which exposes the company to risks that better measurement does not make up for.
What it costs
The cost has three parts.
Hosting. In Google’s reference Cloud Run setup, each server with 1 vCPU and 0.5 GB of memory costs about 45 US dollars a month. Google recommends at least two servers to reduce the risk of losing data if one fails, and three for production traffic. Add the preview server and, with heavy traffic, log storage. Managed hosting providers are another option, priced by number of requests.
Setup. Building the server, the subdomain, the server tags and the tests. It depends on the number of platforms and events.
Maintenance. Updating the server image, checking that events keep arriving and adjusting tags when platforms change their rules.
When it pays off
- The company spends on Google Ads and Meta every month, and automated bidding depends on conversions.
- A meaningful share of traffic comes from Safari, on iPhone and Mac.
- There is a large gap between store sales and platform conversions, and the tags have already been checked.
- The company wants to send server data, such as orders paid by bank transfer or cash on delivery, which are only confirmed later.
On a site with little traffic and small ad budgets, the fixed cost of the server can outweigh the gain. In that case, a well-installed Consent Mode v2 and conversions sent by API from the store platform itself may be enough.
Frequently asked questions
Are server-side tracking and server-side tagging the same thing?
Almost. Server-side tagging is Google’s name for Tag Manager running on a server. Server-side tracking is the broader term, which also covers events sent directly from the store’s server to the platforms.
Do I have to stop using Tag Manager in the browser?
In most cases the two work together. The browser still collects the event and sends it to the server, which does the rest.
In marketing measurement with consent, server-side tracking is the third layer. Klevie implements it for clients, either as a setup with team training or with ongoing operation. If you want to know whether it pays off in your case, book a call.
Sources: Google (Set up server-side tagging with Cloud Run, and Server-side tagging fundamentals), WebKit (notes on Safari’s Intelligent Tracking Prevention). This article covers the technical side and is not legal advice.