Skip to the content
Start free

Server-side tracking

Server-side tracking is sending your site’s measurement data through a server you control before it goes on to Google Analytics or other services, instead of straight from the visitor’s browser to each company. Google Tag Manager offers this as server-side tagging. It changes where the data goes and who shapes it. It does not change the UK rules on cookies and other storage on the visitor’s device.

What is server-side tracking? #

In the usual set-up, each tag in your page sends its own request from the visitor’s browser to its own company. With server-side tagging, there is a server in between. Google says it runs in your own Google Cloud project, or in a different environment of your choosing. Google says only you have access to the data on that server until you choose to send it elsewhere, and you have full control over how it is shaped and where it is routed.

How does it work? #

The page still has a tag. That tag sends one stream of data to your own address. Your server container receives it, then passes on what you choose to each service: Google Analytics 4, an advertising platform, or none. Google also offers the Measurement Protocol, which sends events directly to Google Analytics servers in HTTP requests. Google says its intent is to add to automatic collection, not to replace it, and that a fully server-side set-up may give only partial reporting.

Why the domain matters #

Google strongly recommends putting the tagging server on your first-party domain before it handles real traffic. Its custom domain guide gives three options:

Option Google’s example Server-set cookies
Same origin (the option Google prefers) https://www.example.com/metrics Full access to security and durability benefits
Subdomain https://metrics.example.com Full access to security and durability benefits
Default domain https://metrics.run.app None: can only set JavaScript cookies

A subdomain needs new DNS records. Same origin needs a CDN or load balancer to forward requests. See subdomain and first-party cookies.

No. The ICO says the UK rules apply to any technology that stores information, or accesses information stored, on a user’s device. It lists cookies, tracking pixels, link decoration and navigational tracking, web storage, fingerprinting techniques, and scripts and tags. If the browser still runs a tag or sets a cookie, the rules still apply, wherever the data goes next. See PECR, UK GDPR and cookie banner.

What about the analytics exception? #

The ICO’s statistical purposes exception covers aggregate statistics about how the service is used, with a view to making improvements. The information must be aggregate statistical information you cannot use to identify people. You must give clear and comprehensive information about the purpose, and a “simple and free” way to object. The ICO says this exception “does not allow you to monitor or track individual visitors”. See Consent Mode v2 for UK websites.

Fewer third-party scripts in the page can mean less work for the browser, which helps page speed. It also gives one clear place to see what leaves your site. But measurement still starts in the browser, so it still sees only browsers that run the tag. Search crawlers such as Googlebot do not show up in it. For crawling you need server logs; see Search Console vs analytics.

Why does it matter for AI answers? #

We sort every visitor into five kinds: people, search engines, AI crawlers, AI agents and other machines. A browser tag, sent server-side or not, mainly sees people. An AI crawler that does not run scripts never makes a page view. An AI agent using your MCP server never loads a page. And a person sent by an AI app is visible only when the referrer shows it. See ChatGPT traffic in Google Analytics.

Server-side tagging or server logs? #

The names sound alike, but they see different things.

Method Where the data starts Sees bots?
Browser tag The visitor’s browser No, only browsers that run it
Server-side tagging Still the browser, then your server container No, for the same reason
Server or edge log Every request the server or CDN answers Yes, every request with its user agent

A log counts requests, often called hit analytics. Pages answered by an edge cache never reach your server, so only the CDN’s own log sees them.

A worked example #

A bakery’s website sends measurement data in the usual way. Each page view makes the visitor’s browser send separate requests to Google Analytics and to an advertising service, directly from the page.

With server-side tagging, the browser sends one stream of data to the bakery’s own address, such as metrics.example.co.uk. That is the bakery’s server container. The container then decides what to pass on: page views to Google Analytics, and only the purchase event, with no full address or email, to the advertising service.

The cookie banner does not change. If the bakery needed consent for advertising cookies before, it still needs it, because the browser still stores and reads information on the visitor’s device.

When does it help? #

It helps when you send data to several services and want one place to decide what each one gets. It helps when you want to strip details, such as a full address or email, before anything leaves your server. And it helps when you want a clear record of every outgoing stream. It does not help if the real question is who visits besides people. For that, read the logs.

Common mistakes #

  • Treating it as a way round consent. The UK rules apply to what happens on the device.
  • Leaving the old browser tags running alongside the new set-up, so every visit is counted twice. See conversion tracking.
  • Using the default cloud domain, which Google says can only set JavaScript cookies.
  • Forgetting the server must be run, because it sits in your own cloud project or another environment you choose.
  • Expecting it to show bots. It does not; see bot traffic in analytics.
  • Expecting it to fix low numbers. See why analytics numbers are low.

How to check it #

  1. Open a page with your browser’s developer tools, Network tab, and see where measurement requests go: to Google directly, or to your own address. Our Tracking Checker lists every tracker and pixel a page loads.
  2. Run the Cookie Checker to see what a page sets before consent, and compare it with your cookie banner.
  3. Use the HTTP Header Checker to see cookies set in the response headers, and the Security Headers Checker for the rest of the headers.
  4. Check what the site runs with the tech stack checker: CMS, shop and analytics.
  5. Check the tagging subdomain resolves with the DNS lookup.
  6. In Google Tag Manager, check whether you have a server container as well as a web container.
  7. Tag your campaign links with the UTM builder, so sources survive the move; see UTM parameters.
  8. For bots, read logs instead: drop a server log into the AI Crawler Log Analyser. See log file analysis.
  9. For agents, run the AI Agent Readiness check: OpenAPI, .well-known files, MCP and agent instructions.
  10. Selling in the UK? The UK Shop Compliance Checker includes the cookie banner.

In URSY Pro, opening in stages: cookie-free analytics, measurement integrity, cached-page visitors and MCP and agent call analytics.

What URSY.com counts #

URSY.com counts with three recorders. The Tag is a small cookie-free counter in the page: it sees people whose browser runs scripts, and follows the site’s consent rules. The Edge is the content delivery network’s own log: every request at the cache, cached or not, bots included. The API/MCP log records every call to an API or MCP server we run. A request seen in both the edge log and the website’s own log has the same request ID, so it is counted once, and nothing is joined by who a person is. See our methodology.

Questions #

Is server-side tracking cookieless? #

Not by itself. Google’s own guide is about server-set cookies on your domain. Cookieless measurement is a separate choice; see cookieless analytics.

If you store or read information on the device for anything outside the exceptions, yes. The ICO’s rules cover any technology that does that.

Will it show AI crawlers? #

No. It starts in the browser, so bots that do not run scripts never appear. Edge or server logs show them.

The method is not the question. The ICO’s rules look at what is stored on or read from the device, and why. Get consent where the rules need it, and tell people what you collect.

Does it make my numbers higher? #

It can change them, for example if old and new tags both fire. Check for double counting before you compare months.

Sources #

Updated 24 November 2026 by URSY.com.

Cite this page: Server-side tracking. URSY. Updated 26 November 2026. https://ursy.com/wiki/server-side-tracking/ · Section links

Tools for this

  • LiveAI Crawler Log Analyserdrop in your server log, see which AI bots read what (in browser)Run the check →
  • LiveDuplicate Content Checker (inside your site)Run the check →
  • LiveTracking Checkerevery tracker and pixel a page loadsRun the check →
  • LiveCompare Two Websitesour checks side by side, winner per row (box on the home page)Run the check →
  • ProBot costServer time each bot eatsIn URSY Pro →
  • ProMeasurement integrityDid every paid order reach your tracking? When did counting change?In URSY Pro →
  • ProImage AI sidecars + licenceEach picture with a description file for AI and licence markupIn URSY Pro →

All 871 wiki entries, A to Z →