1. What server-side tracking changes technically
With classic client-side tracking, a visitor’s or user’s web browser downloads all JavaScript libraries directly from the servers of the respective platforms. Each script collects data in the browser and sends it independently to services such as Google Analytics, Meta or LinkedIn.
This approach is increasingly reaching its technical limits. Browser-side protection mechanisms such as Apple’s Intelligent Tracking Prevention (ITP), Firefox Tracking Protection and ad blockers block external scripts from loading or drastically limit the lifetime of first-party cookies in the browser. In practice, this means that returning users are wrongly counted as new visitors and conversions can no longer be attributed to the original marketing touchpoints.
With server-side tracking, this process is decoupled. The web browser sends just a single data stream to a server running under a subdomain of your own website. Only on this intermediate server – the server container instance of Google Tag Manager – is it decided which information is processed, cleaned or forwarded to endpoints such as GA4 or advertising networks.
The difference between client and server in the data flow
In the standard setup, the browser communicates with many interfaces at the same time. Each service requires its own code snippets in the page’s source code.
In the server setup, communication is bundled through one interface:
- The browser sends an event to your own tracking server.
- The server validates the data stream and filters out sensitive personal data.
- The server distributes the cleaned signal via APIs directly to analytics tools and advertising platforms.
This removes the need to run separate scripts in the browser for each advertising partner.
2. Typical measurement differences between GA4 and ad accounts
Many marketing managers in SMEs find that figures in Google Analytics 4 and in their Google Ads or Meta ad accounts drift apart. The ad account reports, for example, 50 leads generated, while GA4 records only 35 conversions in the same period.
These discrepancies rarely arise from simple counting errors, but from different counting methods and data collection methods. Ad accounts use modelling and cross-browser user profiles to attribute conversions. If a user’s browser blocks tracking scripts, however, the web analytics system is missing the triggering event entirely.
Advertising campaigns based on machine learning need reliable data signals. If leads or bookings are not fed back to the platforms correctly, the algorithms optimise on the basis of incomplete information. Server-side tagging ensures that conversion signals are transmitted in a technically stable way via server-to-server interfaces (such as the Meta Conversions API), even if browser-side scripts are disrupted.
3. Costs and technical effort at a glance
Switching to server-side tracking involves recurring infrastructure costs and initial configuration effort. A server instance does not run free of charge in the browser; it needs computing capacity in a cloud environment.
The Google Cloud Platform (GCP) is usually used to host the sGTM, as Google offers preconfigured deployments for it. Alternatively, European cloud providers or specialised hosting services for server-side GTM that offer fixed monthly rates can be used.
Ongoing server costs
For small to medium-sized websites with modest visitor numbers, minimal server configurations are often sufficient. Specialised providers currently charge around 20 US dollars a month for a standard instance and let very small websites below roughly 10,000 requests a month run along free of charge. If you host directly in Google Cloud instead, the production environment of several instances recommended by Google quickly takes you into three figures.
For websites with very high traffic or complex e-commerce systems with millions of server requests, hosting fees rise according to the instances required. For most SMEs, however, the cost framework remains predictable, provided the setup is configured cleanly and unnecessary data requests are avoided.
Setup and maintenance effort
The setup effort is fundamentally different from simply inserting a tracking code. The following steps are required:
- Provision and configuration of the server environment (GCP or a third-party provider).
- Setup of a custom subdomain including an SSL certificate.
- Adjustment of the existing web GTM container to send data to the server endpoint.
- Configuration of the tags, triggers and clients in the server container.
- Mapping and validation of the conversion APIs (for example Meta CAPI or Google Enhanced Conversions).
A system like this requires little maintenance, but it is not maintenance-free. API changes by the platforms or adjustments to forms and booking flows require periodic checks of the data streams.
4. Industry-specific criteria for SMEs
Whether this investment pays off depends heavily on the business model, the value of a single transaction and the dependence on paid web traffic.
B2B service providers with a lead focus
In B2B, often only a small fraction of page visitors leads to a concrete enquiry. The value of a single qualified lead can amount to several thousand euros.
How much is lost depends almost entirely on the audience, which is why any blanket figure is misleading. Measurements by analytics providers show the range: for lifestyle and shop audiences the loss is often in the range of 5 to 15 per cent, while for technically savvy target groups over 50 per cent has been measured. The only figure that counts for your business is therefore your own: the comparison between incoming enquiries or orders in the CRM or shop and what the analytics system sees of them.
Tourism and hotels
Hotels and tourism providers work with complex booking flows. Guests frequently leave the main website and complete the booking on an external booking engine.
Two problems regularly arise here: cross-domain tracking breaks off because of cookie restrictions, and guests book on devices such as iPhones, where Apple’s Safari browser discards first-party cookies after a short time unless they are renewed server-side. Cookies set server-side and controlled directly via your own domain remain valid for longer periods. This allows more reliable attribution of earlier research to later direct bookings.
Franchise systems
In franchise networks, marketing campaigns are often managed centrally, while conversions take place on regional location pages or with partners.
A server-side setup gives franchise head offices the opportunity to standardise data streams centrally and enforce data protection standards across the network. Personal data can be anonymised server-side before it flows into reports or ad accounts.
5. Effects on data protection and website performance
Besides data quality, server-side tracking affects two other core areas of modern websites: compliance with legal requirements and loading time.
Control over data outflow
In the classic tracking model, a third-party script often sends additional technical data to the platform unnoticed, including full IP addresses, URL parameters with sensitive data or device fingerprints. This is problematic under data protection law, especially with regard to data transfers to third countries.
With sGTM, the company acts as gatekeeper:
- IP addresses can be shortened or removed entirely on the server before data is sent to US services.
- URL parameters that accidentally contain contact details from forms can be filtered out.
- Consent decisions from the cookie banner can be strictly enforced on the server, so that without consent no server request is forwarded to endpoints.
What remains important: server-side tracking is not a technical lever for circumventing the consent requirement under the GDPR or the TTDSG. Even on the server, data may only be processed if there is an appropriate legal basis or consent.
Relieving the end device
Every client-side JavaScript ties up computing capacity on the user’s device. The more pixels are loaded on a page, the more slowly the website responds. This has a negative effect on the Core Web Vitals, especially Interaction to Next Paint (INP).
If data distribution is moved to the server, the browser only has to load a single program library. This reduces the user’s network requests and improves loading behaviour, which can have a positive effect on the user experience and indirectly on rankings.
6. Guidance for the decision on implementation
Server-side tracking is not a blanket replacement for simple analytics setups, but a targeted extension.
A switch makes sense if:
- Paid campaigns account for a significant share of the marketing budget and are optimised for conversion signals.
- The discrepancy between enquiries or sales actually received and the values reported in GA4 makes campaign management difficult.
- The website suffers from poor loading times caused by many third-party scripts.
- Strict internal compliance requirements demand control over outgoing data streams.
Staying with standard client-side tracking is usually sufficient if:
- Website traffic is predominantly organic and no paid performance campaigns are managed.
- The number of monthly conversions is so low that statistical optimisation for algorithms plays no role.
- Neither budget nor technical know-how for running a server infrastructure is available.
7. Frequently asked questions
Does server-side tracking completely bypass ad blockers?
No, not completely. It is true that common ad blockers find it harder to block data streams if these are sent to the website’s own domain rather than to known tracking domains. Nevertheless, some browser extensions also block the basic client-side script of Google Tag Manager if it is loaded under standard paths. Bypassing blockers completely is neither guaranteed nor appropriate under data protection law.
Do you still need a cookie banner with server-side tracking?
Yes. Under the GDPR and the TTDSG, consent is still required for reading and storing information on the end device and for processing personal data for marketing purposes. Server-side tracking changes the transmission method but does not release you from the statutory information and consent obligations.
Is server-side tracking better for the website’s loading time?
Yes, in most cases. Because the browser only sends one event to the intermediate server instead of downloading and running several third-party scripts in parallel, the CPU load on the end device falls. This often leads to more stable Core Web Vitals and shorter loading times.
How much does hosting a server-side GTM cost per month?
For small to medium-sized websites, hosting costs with specialised third-party providers start at around 20 US dollars a month; very small websites sometimes run along there free of charge. A Google Cloud environment following Google’s own production recommendation costs considerably more. As traffic grows and with high-availability requirements involving several server instances, costs rise in line with the computing effort.
How can you tell that your own tracking data is incomplete?
The clearest indication is a regular comparison between real business figures (incoming enquiries in the CRM, bookings in the shop system) and the events recorded in Google Analytics 4. There is no universal threshold — what matters is that the gap is persistent and points in one direction. If GA4 systematically deviates downwards over several weeks while the CRM and shop report stable figures, the loss is due to browser blocking or aborted scripts and not to chance.