Skip to content
Black Week is on: campaign prices on SEO, GEO and content reports, Nov 26 – Dec 2.See the packages →
Comparison4 min read

Server-side tracking vs Client-side tracking

Client-side tracking sends data from the visitor's browser straight to analytics and ad platforms. Server-side tracking sends it first to the company's own server, which forwards it to the platforms by rules. The server side increases data control and reduces data loss, but it costs money and needs maintenance.

Updated View as Markdown
Server-side vs client-side tracking

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

Server-side vs client-side tracking: the difference and how to choose: comparison table
CriterionClient-sideServer-side
Data pathBrowser → platformsBrowser → your own server → platforms
BlockingAffected by ad blockers and browser restrictionsLess affected when the server runs on your own domain
Data controlThe platform gets whatever it collectsYou decide on the server which fields are sent
Page speedMany tags can slow the pageFewer tags may be needed in the browser
CostLowServer cost and maintenance
SetupSimpleNeeds 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.

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.

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.

Ask AI

Share

Help with this choice

Server-side tracking

Server-side Google Tag Manager, first-party data, Meta Conversions API and enhanced conversions: send ad signals that are complete and under your control.

Data and measurement

Comparisons

Two options, the same criteria.

Comparisons
  • Lead generation

    Apollo vs Lemlist: which one for outbound?

    Apollo suits sales teams that want a large B2B database, enrichment and sequences in one tool to build their target list. Lemlist suits teams whose list is largely ready and who focus on personalized, multichannel sequences. In both, deliverability depends on your sending infrastructure.

  • Data and measurement

    GA4 vs Mixpanel: marketing or product analytics?

    GA4 fits marketing and acquisition analysis: traffic sources, campaign performance and the Google Ads integration. Mixpanel fits product analytics: what users do inside the product, cohorts and retention. Many SaaS companies use both side by side, with the same event names and user IDs in each tool.

  • GEO agency

    GEO vs SEO vs AEO: the differences and when to use each

    SEO gets a page ranking in search results; AEO structures the page so it answers a specific question directly; GEO aims to have the brand and the page chosen as a source in AI answers, off-site sources included. They are not alternatives: SEO is the foundation, and AEO and GEO build on it. Our GEO agency service runs all three.

  • Performance marketing

    Google Ads vs Meta Ads: which channel, and when?

    Google Ads fits when people already search for what you offer and you want to capture that demand. Meta Ads fits offers where demand does not exist yet, that can be shown visually and need to reach a broad audience. Most brands run both, and decide with qualified-lead and sales data from the CRM.

  • Performance marketing

    Google Ads vs Microsoft Advertising: which one fits which business?

    For almost any business selling to customers in Türkiye, Google Ads is the main search channel. Microsoft Advertising makes sense as a second channel for B2B companies that already run well-measured Google campaigns, sell into markets such as the US or UK, and want extra search volume for little extra work by importing those campaigns.

  • CRM consulting

    HubSpot vs Zoho CRM: which one for B2B?

    HubSpot suits B2B teams that want marketing automation, sales and service on one platform and put ease of use first. Zoho CRM suits companies that want to keep costs under control, customise extensively or use Zoho's wide family of apps. Decide on two-year total cost.

  • Lead generation

    Make vs n8n vs Zapier: which automation tool?

    Zapier suits non-technical teams that want to start fast and use the widest set of ready-made app connections. Make suits teams building visually complex, multi-step flows. n8n suits teams that want technical flexibility, code steps and the option to self-host. Plan error handling for critical flows in any of them.

  • CRM consulting

    Pipedrive vs HubSpot: which CRM for your sales team?

    Pipedrive suits teams that want to run the pipeline in a simple interface, start fast and keep a predictable cost for the sales team alone. HubSpot suits B2B teams where marketing automation, content, forms and sales need to share the same data, and who want one platform from lead source to closed deal.

  • SEO

    Semrush vs Ahrefs: choosing an SEO tool

    Semrush suits marketing teams that want advertising, content and local marketing tools in the same package as SEO. Ahrefs suits SEO teams focused on link analysis and organic research. Both tools work with estimated data; the real data for your own site is in Search Console.

  • Webflow

    Webflow vs Framer: which one for a corporate site?

    Pick Framer for landing pages, campaigns and small product sites that need to go live fast, especially when the design team owns the site. Pick Webflow for corporate and B2B sites with many collections, a referenced content model, several languages and a large content team. Both platforms are moving quickly.

Let’s work out which one fits you.

Let’s go through your requirements; we start from the goal, not the platform.

Ask Ezgi