
In short
Which one for whom?
Server-side tracking suits companies with large ad budgets, where lost conversion data affects decisions, and that want control over the data sent to third parties. For sites with small budgets and simple measurement needs, correctly configured client-side tracking is enough. Most setups use both, and consent rules apply to both.
Server-side is for
companies with large ad budgets, several channels and a need to control their data.
Client-side is for
sites with small budgets and simple measurement needs, or teams that need to fix the basics before moving to the server side.
Side by side
Server-side tracking vs Client-side tracking
| Criterion | Client-side | Server-side |
|---|---|---|
| Data path | Browser → platforms | Browser → your own server → platforms |
| Blocking | Affected by ad blockers and browser restrictions | Less affected when the server runs on your own domain |
| Data control | The platform gets whatever it collects | You decide on the server which fields are sent |
| Page speed | Many tags can slow the page | Fewer tags may be needed in the browser |
| Cost | Low | Server cost and maintenance |
| Setup | Simple | Needs technical skills |
Why server-side?
Ad blockers, browser tracking restrictions and in-app browsers make you lose part of the data sent from the browser, and ad algorithms then learn from incomplete data. The server side reduces that loss and lets you filter personal data before it reaches the platforms.
Limits
Server-side tracking cannot be used to get around a user's consent choice. A faulty client-side setup does not fix itself when you move it to the server either; get the basics right first.
Setup: server-side tracking. Related: GA4 consulting, What is GA4.
Where server-side GTM is hosted and what it costs
Server-side Tag Manager runs on a server or a cloud service. Google's Cloud Run setup guide requires a Google Cloud billing account, recommends running at least 2 instances to reduce the risk of data loss during a server outage, and says each server costs about $45 a month in that configuration (as of November 2026).
Cloud Run adds instances automatically as traffic grows, and the maximum instance setting is the worst case for what you may pay. On high-traffic servers, logging can also add significant charges. Google recommends the Google Cloud Pricing Calculator for monthly estimates.
Consent mode in a server-side setup: basic and advanced
According to Google's server-side consent mode documentation, the Google tag sends the user's preferences to the server container by adding consent parameters to the HTTP request, so consent mode only needs to be set up in the web container. Google product tags in the server container then adjust the amount and kind of data they send.
For Google Analytics, basic mode blocks the tags entirely when analytics consent is denied; in advanced mode, the tags load but send anonymous measurements without third-party cookies. In both modes, no Analytics cookies are set, accessed or read on the device. When ad consent is denied, Google Ads cookies aren't written or read.
Browser restrictions: Safari ITP and cookie lifetime
According to WebKit's tracking prevention documentation, Intelligent Tracking Prevention (ITP) in Safari deletes cookies created in JavaScript, and other script-writeable storage, after 7 days without user interaction with the site. When it detects link decoration, it caps the lifetime of cookies created in JavaScript on the landing page at 24 hours.
Cookies set by the server aren't always safe either: when ITP detects third-party CNAME cloaking or third-party IP address cloaking, it caps cookies set in the HTTP response at 7 days. That is why the tracking server's domain and hosting should be planned together.
Platform server integrations: Meta Conversions API and Google Ads enhanced conversions
Meta's Conversions API is designed to send marketing data to Meta from an advertiser's server, website platform, mobile app or CRM. If the Meta Pixel also runs on the site, events are deduplicated so the same event isn't counted twice; the Meta guide in the sources covers the details.
On the Google Ads side, enhanced conversions supplement your existing conversion tracking by hashing first-party customer data, such as email addresses, with the one-way SHA256 algorithm. The version for leads matches hashed data from your website's forms with imported offline conversions, so sales that close off the website can be attributed to the campaign that brought in the lead.
Sources
- Google, Server-side Tag Manager: https://developers.google.com/tag-platform/tag-manager/server-side (accessed October 2026)
- Meta for Developers, Deduplicate Pixel and Conversions API events: https://developers.facebook.com/docs/marketing-api/conversions-api/deduplicate-pixel-and-server-events/ (accessed October 2026)
- Google, Consent mode overview: https://developers.google.com/tag-platform/security/concepts/consent-mode (accessed November 2026)
- Google, Server-side consent mode: https://developers.google.com/tag-platform/tag-manager/server-side/consent-mode (accessed November 2026)
- Google, Server-side Tag Manager Cloud Run setup guide: https://developers.google.com/tag-platform/tag-manager/server-side/cloud-run-setup-guide (accessed November 2026)
- Google, Introduction to server-side tagging: https://developers.google.com/tag-platform/tag-manager/server-side/intro (accessed November 2026)
- WebKit, Tracking Prevention in WebKit: https://webkit.org/tracking-prevention/ (accessed November 2026)
- Meta for Developers, Conversions API: https://developers.facebook.com/docs/marketing-api/conversions-api (accessed November 2026)
- Google Ads Help, About enhanced conversions: https://support.google.com/google-ads/answer/9888656 (accessed November 2026)
Frequently asked questions
Does server-side tracking replace client-side tracking?
Usually they work together: the browser tag collects the data, and the server processes it and passes it on to the platforms. Some platforms, Meta for example, take both the pixel and the server events and deduplicate them.
Can server-side tracking get around consent?
It must not. The server should carry the browser's consent state and apply the same rules. According to Google's consent mode documentation, in basic mode Google tags don't load until the user interacts with the consent banner, and no data is sent to Google if the user doesn't consent; in advanced mode, tags still send cookieless measurements while consent is denied. Choose the mode as part of your legal review.
Do small sites need server-side tracking?
If the ad budget is small and conversion data does not change decisions much, correctly configured client-side tracking can be enough.
























