Modern digital marketing is gradually adapting to new conditions: stricter user privacy requirements, browser restrictions and changes in the use of third-party cookies are affecting how businesses collect and analyze data. Traditional browser-based tracking, which marketers have relied on for years, can no longer provide full visibility into user activity in many cases. This makes it more difficult to evaluate the effectiveness of advertising activities and for optimization algorithms to work effectively.
A solution that helps restore data completeness and measurement accuracy, protect customer data and significantly improve advertising campaign performance is Server-Side Tagging (SST). In this overview, we will take a detailed look at the architecture of server-side tracking based on Google Tag Manager and Google Cloud, deployment options and its economic feasibility.
1. Comparative Analysis: Client-Side Tagging vs. Server-Side Tagging
To fully understand the technology, it is important to take a detailed look at the differences between browser-based and server-side approaches to data collection.
With traditional Client-Side tracking, all processing takes place directly in the user’s browser, whether on a desktop or mobile device. When visiting a website, the browser loads dozens of JavaScript scripts from different analytics and advertising platforms. Each script independently collects data about user actions and sends separate requests to the servers of the relevant platforms, such as Google Analytics, DV360, Meta or Google Ads.
Modern data protection mechanisms, including ITP in Safari, ad blockers and strict privacy extensions, can intercept and block these requests. As a result, marketers lose a significant amount of conversion data. In addition, the user’s browser becomes heavily burdened by third-party code.
In contrast, Server-Side tracking adds a reliable intermediate layer in the form of your own cloud server hosted on Google Cloud. Instead of loading dozens of third-party scripts, the website only needs one basic JavaScript script (.gtag). It sends one initial request to your own

It is important to emphasize that Server-Side tracking is not a replacement for Client-Side tracking. Rather, it is a logical extension of it and works in close conjunction with it.
Detailed Overview of the Client-Side Approach

- How it works: the visitor’s browser executes all JS code and sends direct network requests to third-party domains (google-analytics.com, connect.facebook.net, etc.).
- Disadvantages:
- High load: the more tags you use (Google Ads, Meta, TikTok, Hotjar), the more code the user’s browser has to load and process.
- Vulnerability to blockers: ad blockers (AdBlock, uBlock) and privacy-focused browsers can easily identify direct requests to advertising networks and block them at the network level.
- Limited cookie lifetime: privacy algorithms such as Intelligent Tracking Prevention in Safari reduce the lifetime of third-party cookies to 1–7 days
Detailed Overview of the Server-Side Approach

Server-Side Tagging fundamentally changes the data collection paradigm by moving processing and routing from the user’s unsecured browser to a cloud server under your control.
How It Works
Instead of forcing the browser to execute dozens of individual JavaScript scripts and send numerous direct requests to Meta, Google, TikTok or LinkedIn servers, you establish a single connection.
The browser sends only one initial data stream through a lightweight .gtag script to your private Google Cloud server using your own subdomain, for example, sst.yourdomain.com
The data is then processed inside the Google Tag Manager server container (Server GTM):
- Receives and parses: the server-side Client processes the incoming HTTP request and creates a unified data object (Event Data).
- Filters and enriches: users’ personal data (PII) is hashed and enriched with useful business information before being sent to the relevant platforms.
- Routes: using reliable Server-to-Server APIs (for example, Meta Conversion API and Google Ads API), the server independently routes conversion events to the required advertising and analytics platforms.
As a result, data is processed at the server level rather than directly in the user’s browser, providing better control over data transmission and helping comply with modern privacy requirements.
Key Benefits
- First-Party status and bypassing browser restrictions:
- Mechanism: because data is sent to your own subdomain (sst.yourdomain.com), the browser considers the server to be part of the main website (yourdomain.com).
- Result: privacy protection mechanisms, including ITP in Safari, do not treat these requests as third-party tracking. This makes it possible to safely set and read cookies with a lifetime of up to 2 years instead of 1–7 days, restoring the accuracy of end-to-end analytics and long-term attribution.
- Full control over personal data (PII):
- Mechanism: with server-side tracking, the browser does not send IP addresses, technical headers or PII (Personally Identifiable Information) directly to advertising and analytics networks.
- Result: at the server level, you act as a “firewall.” You can automatically remove IP addresses, truncate geolocation data or hash sensitive information (email addresses, phone numbers and names) using the SHA-256 algorithm before it leaves your cloud server. This helps ensure strict compliance with GDPR, CCPA and the company’s internal security standards.
- Server-Side Data Enrichment (Data Enrichment):
- Mechanism: the server container can be integrated with internal databases, CRM systems or Google BigQuery in real time.
- Result: you can add actual product margin, customer status (LTV, VIP, new/repeat) or an internal user ID to a purchase event without exposing this data in the page’s JS code. This makes it possible to optimize campaigns in DV360, Google Ads and Meta based on actual profit (POAS / Value-Based Bidding), rather than simply clicks or gross revenue.
2. Business Benefits and Impact on Website Speed
Implementing server-side tracking goes far beyond a purely technical configuration, as it directly affects key business performance indicators.
According to a Usercentrics study, full use of Server-Side Tagging can increase the number of recorded conversions by up to +30%, reduce CPA by up to -57% by providing higher-quality data for automated bidding algorithms, and increase the overall volume of tracked conversions by an average of 46%.

The technical impact on page load speed should also be highlighted. Moving tag processing to the server frees the user’s browser from heavy scripts, accelerating website loading by an average of 5.6 seconds.
In digital business, every millisecond has a direct monetary value. Research shows that accelerating page load time by just 0.1 seconds can result in a noticeable increase in conversion rates and average order value across different industries.

In retail, for example, this results in an 8.4% increase in conversion rate, while total consumer spending increases by 9.2%. In the luxury segment, speeding up a website by 0.1 seconds encourages 40.1% more users to move from a product page to the checkout process.
In the travel industry, completed orders increase by 2.2%, while the overall booking rate improves by 10%. For lead-generation businesses, this means a 21.6% increase in the number of users who proceed to fill out contact forms.
Direct Impact on Marketing and Return on Ad Spend (ROAS)
Server-side tracking addresses one of the biggest challenges in modern performance marketing — the “blindness” of advertising algorithms. When analytics systems lose some events, advertising platforms receive an incomplete picture of the customer journey, which directly affects Return on Ad Spend (ROAS).
Data Completeness and a Realistic Analytics Picture
- Mechanism
In the traditional Client-Side approach, a significant percentage of user actions remain “invisible” because of ad blockers (AdBlock, uBlock) and strict privacy settings in Safari (ITP) and Firefox (ETP).
- Вusiness Impact
By sending conversions through Server-Side Tagging at the First-Party subdomain level, you return lost data to analytics platforms. Marketers can see the exact revenue amount, actual number of orders and objective conversion distribution by traffic source, allowing them to make decisions based on complete data.
Optimization and Advertising Algorithm Training
- Mechanism
Modern performance marketing relies heavily on machine learning (Auto-bidding or Custom bidding in DV360, Smart Bidding in Google Ads, Advantage+ in Meta and Smart Performance Campaign in TikTok). These algorithms require the largest possible volume of high-quality training signals.
- Business Impact
Because server-side tracking sends a complete set of conversions, including through Meta CAPI and Google Ads API, advertising platforms receive accurate data for training. The algorithm gains a better understanding of your ideal customer profile, which improves ad relevance and can reduce the cost per desired action (CPA) by up to -57%.
Long-Term Attribution and Repeat Visit Recognition
- Mechanism
Due to ITP restrictions, client-side cookies in Safari browsers and on iOS devices can be deleted after just 1–7 days. If a user clicked an ad but made a purchase on day 8, the algorithm could classify them as a “new” or “organic” visitor, causing the advertising campaign to lose the associated conversion.
- Business Impact
Moving to Server-Side Tagging in a First-Party context restores cookie lifetime to up to 2 years. This makes it possible to correctly link long-term sales, particularly in B2B, high-ticket and luxury businesses, restore complex multi-channel attribution journeys and objectively evaluate the contribution of display and search campaigns to overall profit (ROAS).
Improving Core Web Vitals and Website Performance
With Client-Side tracking, the browser has to execute dozens of heavy JS files simultaneously, which can delay content rendering.
Moving to Server-Side tracking allows you to:
- Optimize resources: SST moves heavy processing to cloud servers, leaving only one lightweight .gtag script on the website.
- Improve performance: the average website loading speed benefit can reach 5.6 seconds, significantly improving Core Web Vitals metrics (LCP, FID/INP).
- SEO impact: since website speed is a direct Google ranking factor, improving performance can have a positive impact on organic rankings.
3. Deployment Methods and Infrastructure Selection
The server container deployment process is designed to meet the requirements of projects of any scale. In total, we offer four main deployment methods.

The first and simplest option is automatic deployment through Google Cloud Run directly from the GTM interface. This option is suitable for getting started quickly and for initial tracking tests.
The entire configuration is completed in one click: Google Tag Manager automatically creates the required Google Cloud project, configures the server environment and provides a generated address, for example abc123.uc.a.run.app. The only requirement for the user is to connect an active billing account.
The second method involves manual configuration through the Google Cloud Run interface. This provides flexible control over the parameters. A specialist can manually select a custom First-Party subdomain, the required server region — for example, Frankfurt for the European market — and configure automatic scaling limits in detail.
The third option is deployment through the command line in Cloud Shell, which is integrated into the Google Cloud interface. This is a terminal where you can enter Google Cloud commands, allowing the system to perform the required operations. This method provides all the capabilities of the second option but speeds up deployment if you know the required sequence of commands, which is why it is our preferred method.
The fourth and most complex method is manual deployment using Docker. It is chosen when a business requires full control over its infrastructure or plans to use alternative cloud servers such as Amazon Web Services (AWS), Microsoft Azure or its own physical servers.
Despite the availability of alternatives, Google Cloud remains the most suitable environment for Server-Side Tagging. This is due to its seamless native integration with the entire Google ecosystem, automatic scaling during traffic spikes, highly reliable cloud infrastructure and the ability to deploy directly from the Google Tag Manager interface.
Detailed Overview of the 4 Deployment Methods
1. Automatic Deployment (1-click in GTM):
- Complexity: minimal (suitable for beginners).
- Features: ideal for initial testing of tag sending and processing.

2. Manual Configuration in Google Cloud Run GUI:
- Complexity: medium.
- Features: allows specialists to configure a custom subdomain, precisely select server locations (reducing latency for local users) and fine-tune CPU, RAM and instance limits.

3. Deployment via Cloud Shell (CLI):
- Complexity: medium / for technical specialists.
- Features: allows the environment to be deployed using several commands or preconfigured automation scripts.

4. Containerization via Docker (Multi-cloud / On-Premise):
- Complexity: high (requires DevOps expertise).
- Features: provides complete freedom of platform choice — AWS, Azure, DigitalOcean or the company’s own physical servers (On-Premise) to comply with the strictest internal security policies.

4. Internal Architecture and Technical Capabilities of SS
The overall architecture of server-side analytics is based on a clear separation of responsibilities. The user’s browser sends one initial request to the GTM Web container, which immediately forwards it to the GTM Server container in the cloud. The server container then processes the information and distributes it to the required analytics and advertising platforms.

The server container is an isolated GTM environment running on a cloud server. Its main internal component is called the Client.
The Client acts as a kind of “translator.” It receives an incoming HTTP request from the browser, recognizes its structure and transforms it into a unified data object — the Event Data Object.
This object is then passed to all configured server-side tags in GA4, DV360, Google Ads or Meta.
This implements the core architectural principle: one incoming request from the browser is processed by one Client and distributed to multiple tags, while the user’s browser does not even know which services received the data.

The server environment enables technical capabilities that are fundamentally impossible to implement in a standard browser: hashing confidential data and secrets, enriching data with business context from a CRM and protecting personal data (PII).
The First-Party context plays an extremely important role in this architecture.
If a website operates on the yourdomain.com domain, then when automatically deployed through Google Cloud Run directly from the GTM interface, the automatically assigned server address, such as abc123.uc.a.run.app, will be perceived by browsers as a third-party domain.
As a result, ITP protection mechanisms in Safari can reduce cookie lifetime to 1–7 days or block cookies entirely.

When the server is deployed on the company’s own subdomain, for example sst.yourdomain.com, manually through Google Cloud Run or via the Cloud Shell command line, it acquires First-Party domain status.
In this case, cookies can be stored by browsers for up to 2 years and are fully protected from blockers.
Key Server Container Elements (Client, Event Data, Tags)
The internal data flow in Server GTM consists of three consecutive stages:
- Client: processes the incoming HTTP request from the browser. It parses the URL, headers and request body and converts them into a standardized format.
- Event Data Object: a unified data format inside the server. It contains the event name, its parameters (price, currency, product ID) and user identifiers.
- Server Tags: modules that take the Event Data Object and send it to the required connector, for example by sending a webhook to Meta CAPI or an HTTP request to GA4.
The main advantage of this architecture: the user’s browser sends only one request instead of 5–10, while the server distributes it in parallel to five different platforms without placing any additional load on the visitor’s device.
5. Step-by-Step SST Setup Process
The transition from traditional browser-based tracking to a server-side environment consists of six steps:
1. At the first stage, a new container is created in the Google Tag Manager account, but instead of Web, Server is selected. It does not have a code snippet to be added to the website — it runs on the server.
From this point on, the account contains two containers: the standard Web container and the new Server container. They work together: the web container sends the data, while the server container receives and processes it.

2. At the second stage, the cloud server is deployed in Google Cloud Run — automatically through the GTM interface for testing or manually / through the terminal for production deployment.

- With manual deployment, we access the Google Cloud Console, create a new Cloud Run service, specify the ready-made GTM image and connect it to our server container. This allows us to select the region — for clients in Ukraine and Europe, we choose Frankfurt or Belgium to minimize latency. We also configure the minimum number of instances for production at this stage.

- We activate the required Google Cloud services, create a new Google Cloud Run service using the ready-made GTM image, configure the load balancer and SSL certificate for our subdomain. This is done once and takes approximately one hour. After that, the server operates autonomously and does not require constant attention.

- Once the server has been deployed, we return to GTM and specify its address (Server container URLs) in the server container settings. From this point on, GTM knows where to send and receive data.

- Next, we open Preview Mode in the server container and visit the website in the same browser. If incoming requests appear in Preview, the server is receiving data, which means everything has been configured correctly.

3. The third stage is dedicated to connecting a custom First-Party subdomain in the DNS panel.
The client needs to choose a subdomain name — usually sst or analytics plus the website domain — and ask their administrator or hosting provider to add a DNS record pointing to our server.
This usually takes 5–10 minutes. On our side, we connect the subdomain to Cloud Run and update GTM.

4. At the fourth stage, the data flow is redirected: in the GTM Web container, the Google Tag is configured with the server_container_url parameter containing the address of our subdomain.

An important point — we do not disable the old tracking immediately. For a certain period, it runs in parallel until we make sure that the server-side flow is transmitting the same data.
5. The fifth stage includes migrating and configuring tags (GA4, DV360, Google Ads, Meta CAPI) inside the server container.

6. The final, sixth stage involves thorough testing through Server GTM Debug Mode and DevTools.
Server Container Preview displays incoming HTTP requests, which Client processed them, which tags were triggered and the complete Event Data Object with all parameters. At the same time, we check the browser’s DevTools: requests should be sent to your subdomain rather than google-analytics.com, and cookies should be set by your domain.

Once both checks have been successfully completed, we publish and launch the system.
6. Financial Model and Infrastructure Control
The cost of Server-Side Tagging in Google Cloud is calculated based on the actual server load, the number of HTTP requests and the geographical distribution of your audience.
Depending on website traffic volumes, estimated monthly costs are distributed as follows:
- For test tracking, one automatic instance is sufficient, with a budget of up to $50 per month.
- Small websites require 2–3 instances, costing approximately $100–150 per month.
- Medium-sized projects require 3 to 6 instances, with costs ranging from $150–300 per month.
- For high-traffic resources with 6 or more instances, the budget starts at $300 per month.
Monitoring recommendation: when monitoring server load through the Cloud Run Reports dashboard, it is recommended to add additional instances (or adjust the automatic scaling threshold) if average CPU Utilization exceeds 60%.
7. SST Setup by CoobX

Server-Side Tracking setup begins with a detailed audit of the current web analytics infrastructure.
At this stage, we analyze how Google Tag Manager is configured, what data is being collected and transmitted to advertising and analytics platforms, remove unnecessary elements and identify what needs to be moved to the server.
Building the cloud infrastructure: we create a server container in GTM and deploy it using reliable Google Cloud Run infrastructure.
Subdomain connection: together with the client, we configure a First-Party domain through which data is transmitted so that cookies are correctly recognized by browsers and are fully protected from blockers.
Migration of tags from key platforms: we connect GA4 and Floodlight to the server and configure Meta or Google Ads.
Testing and verification of the entire tracking system: we verify that events are transmitted correctly to ensure that they arrive without errors, data loss or duplicates and can be used by advertising algorithms to optimize campaigns.
The final stage is transferring access credentials and technical documentation to the client. As a result, the client receives full control over the new analytics infrastructure.
Server-Side Tagging is a necessary infrastructure change for any performance team or agency. Moving to server-side tracking allows businesses to recover lost conversions, reduce customer acquisition costs (CPA), improve website performance and ensure compliance with modern privacy standards.
CoobX is an official Google Cloud Sell & Service Partner in Ukraine. Contact us if you would like to set up Server-Side Tagging with Google Cloud under special terms from an official Google Cloud Sell & Service Partner and activate the full range of Google Cloud capabilities for marketing.
This material was prepared based on expert materials from CoobX webinars — an official Google Cloud Sell & Service Partner.

