{
    "title": "Server-side tracking",
    "description": "Sending measurement data through a server you control before it reaches Google or others, instead of straight from the browser.",
    "url": "https://ursy.com/wiki/server-side-tracking/",
    "canonical": "https://ursy.com/wiki/server-side-tracking/",
    "markdown": "https://ursy.com/wiki/server-side-tracking/index.md",
    "json": "https://ursy.com/wiki/server-side-tracking/index.json",
    "published": "2026-11-22T17:38:10+00:00",
    "updated": "2026-11-26T15:48:11+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY and link https://ursy.com/wiki/server-side-tracking/",
    "headings": [
        {
            "level": 2,
            "text": "What is server-side tracking?",
            "id": "what-is-server-side-tracking",
            "url": "https://ursy.com/wiki/server-side-tracking/#what-is-server-side-tracking"
        },
        {
            "level": 2,
            "text": "How does it work?",
            "id": "how-does-it-work",
            "url": "https://ursy.com/wiki/server-side-tracking/#how-does-it-work"
        },
        {
            "level": 2,
            "text": "Why the domain matters",
            "id": "why-the-domain-matters",
            "url": "https://ursy.com/wiki/server-side-tracking/#why-the-domain-matters"
        },
        {
            "level": 2,
            "text": "Does it get round consent?",
            "id": "does-it-get-round-consent",
            "url": "https://ursy.com/wiki/server-side-tracking/#does-it-get-round-consent"
        },
        {
            "level": 2,
            "text": "What about the analytics exception?",
            "id": "what-about-the-analytics-exception",
            "url": "https://ursy.com/wiki/server-side-tracking/#what-about-the-analytics-exception"
        },
        {
            "level": 2,
            "text": "Why does it matter for search?",
            "id": "why-does-it-matter-for-search",
            "url": "https://ursy.com/wiki/server-side-tracking/#why-does-it-matter-for-search"
        },
        {
            "level": 2,
            "text": "Why does it matter for AI answers?",
            "id": "why-does-it-matter-for-ai-answers",
            "url": "https://ursy.com/wiki/server-side-tracking/#why-does-it-matter-for-ai-answers"
        },
        {
            "level": 2,
            "text": "Server-side tagging or server logs?",
            "id": "server-side-tagging-or-server-logs",
            "url": "https://ursy.com/wiki/server-side-tracking/#server-side-tagging-or-server-logs"
        },
        {
            "level": 2,
            "text": "A worked example",
            "id": "a-worked-example",
            "url": "https://ursy.com/wiki/server-side-tracking/#a-worked-example"
        },
        {
            "level": 2,
            "text": "When does it help?",
            "id": "when-does-it-help",
            "url": "https://ursy.com/wiki/server-side-tracking/#when-does-it-help"
        },
        {
            "level": 2,
            "text": "Common mistakes",
            "id": "common-mistakes",
            "url": "https://ursy.com/wiki/server-side-tracking/#common-mistakes"
        },
        {
            "level": 2,
            "text": "How to check it",
            "id": "how-to-check-it",
            "url": "https://ursy.com/wiki/server-side-tracking/#how-to-check-it"
        },
        {
            "level": 2,
            "text": "What URSY.com counts",
            "id": "what-ursy-counts",
            "url": "https://ursy.com/wiki/server-side-tracking/#what-ursy-counts"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/wiki/server-side-tracking/#questions"
        },
        {
            "level": 3,
            "text": "Is server-side tracking cookieless?",
            "id": "is-server-side-tracking-cookieless",
            "url": "https://ursy.com/wiki/server-side-tracking/#is-server-side-tracking-cookieless"
        },
        {
            "level": 3,
            "text": "Do I still need a cookie banner?",
            "id": "do-i-still-need-a-cookie-banner",
            "url": "https://ursy.com/wiki/server-side-tracking/#do-i-still-need-a-cookie-banner"
        },
        {
            "level": 3,
            "text": "Will it show AI crawlers?",
            "id": "will-it-show-ai-crawlers",
            "url": "https://ursy.com/wiki/server-side-tracking/#will-it-show-ai-crawlers"
        },
        {
            "level": 3,
            "text": "Is server-side tracking legal in the UK?",
            "id": "is-server-side-tracking-legal-in-the-uk",
            "url": "https://ursy.com/wiki/server-side-tracking/#is-server-side-tracking-legal-in-the-uk"
        },
        {
            "level": 3,
            "text": "Does it make my numbers higher?",
            "id": "does-it-make-my-numbers-higher",
            "url": "https://ursy.com/wiki/server-side-tracking/#does-it-make-my-numbers-higher"
        },
        {
            "level": 2,
            "text": "Related words",
            "id": "related-words",
            "url": "https://ursy.com/wiki/server-side-tracking/#related-words"
        },
        {
            "level": 2,
            "text": "Sources",
            "id": "sources",
            "url": "https://ursy.com/wiki/server-side-tracking/#sources"
        }
    ],
    "links": [
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "Google Tag Manager",
            "url": "https://ursy.com/wiki/google-tag-manager/",
            "internal": true
        },
        {
            "text": "cookies",
            "url": "https://ursy.com/wiki/cookie/",
            "internal": true
        },
        {
            "text": "Google Analytics 4",
            "url": "https://ursy.com/wiki/google-analytics-4/",
            "internal": true
        },
        {
            "text": "HTTP",
            "url": "https://ursy.com/wiki/http/",
            "internal": true
        },
        {
            "text": "DNS records",
            "url": "https://ursy.com/wiki/dns-records/",
            "internal": true
        },
        {
            "text": "CDN",
            "url": "https://ursy.com/wiki/cdn/",
            "internal": true
        },
        {
            "text": "subdomain",
            "url": "https://ursy.com/wiki/subdomain/",
            "internal": true
        },
        {
            "text": "first-party cookies",
            "url": "https://ursy.com/wiki/first-party-cookies/",
            "internal": true
        },
        {
            "text": "PECR",
            "url": "https://ursy.com/wiki/pecr/",
            "internal": true
        },
        {
            "text": "UK GDPR",
            "url": "https://ursy.com/wiki/uk-gdpr/",
            "internal": true
        },
        {
            "text": "cookie banner",
            "url": "https://ursy.com/wiki/cookie-banner/",
            "internal": true
        },
        {
            "text": "Consent Mode v2 for UK websites",
            "url": "https://ursy.com/wiki/consent-mode-v2-for-uk-websites/",
            "internal": true
        },
        {
            "text": "page speed",
            "url": "https://ursy.com/wiki/page-speed/",
            "internal": true
        },
        {
            "text": "Search crawlers",
            "url": "https://ursy.com/wiki/search-crawler/",
            "internal": true
        },
        {
            "text": "Googlebot",
            "url": "https://ursy.com/wiki/googlebot/",
            "internal": true
        },
        {
            "text": "crawling",
            "url": "https://ursy.com/wiki/crawling/",
            "internal": true
        },
        {
            "text": "server logs",
            "url": "https://ursy.com/wiki/server-logs/",
            "internal": true
        },
        {
            "text": "Search Console vs analytics",
            "url": "https://ursy.com/wiki/search-console-vs-analytics/",
            "internal": true
        },
        {
            "text": "search engines",
            "url": "https://ursy.com/wiki/search-engine/",
            "internal": true
        },
        {
            "text": "AI crawler",
            "url": "https://ursy.com/wiki/ai-crawler/",
            "internal": true
        },
        {
            "text": "AI agent",
            "url": "https://ursy.com/wiki/ai-agent/",
            "internal": true
        },
        {
            "text": "MCP",
            "url": "https://ursy.com/wiki/mcp/",
            "internal": true
        },
        {
            "text": "referrer",
            "url": "https://ursy.com/wiki/referrer/",
            "internal": true
        },
        {
            "text": "ChatGPT traffic in Google Analytics",
            "url": "https://ursy.com/wiki/chatgpt-traffic-in-google-analytics/",
            "internal": true
        },
        {
            "text": "bots",
            "url": "https://ursy.com/wiki/bot-web-robot/",
            "internal": true
        },
        {
            "text": "user agent",
            "url": "https://ursy.com/wiki/user-agent/",
            "internal": true
        },
        {
            "text": "hit analytics",
            "url": "https://ursy.com/wiki/hit-analytics/",
            "internal": true
        },
        {
            "text": "edge cache",
            "url": "https://ursy.com/wiki/edge-cache/",
            "internal": true
        },
        {
            "text": "conversion tracking",
            "url": "https://ursy.com/wiki/conversion-tracking/",
            "internal": true
        },
        {
            "text": "bot traffic in analytics",
            "url": "https://ursy.com/wiki/bot-traffic-in-analytics/",
            "internal": true
        },
        {
            "text": "why analytics numbers are low",
            "url": "https://ursy.com/wiki/why-analytics-numbers-are-low/",
            "internal": true
        },
        {
            "text": "Tracking Checker",
            "url": "https://ursy.com/tracking-checker/",
            "internal": true
        },
        {
            "text": "Cookie Checker",
            "url": "https://ursy.com/cookie-checker/",
            "internal": true
        },
        {
            "text": "HTTP Header Checker",
            "url": "https://ursy.com/http-header-checker/",
            "internal": true
        },
        {
            "text": "Security Headers Checker",
            "url": "https://ursy.com/security-headers-checker/",
            "internal": true
        },
        {
            "text": "tech stack checker",
            "url": "https://ursy.com/tech-stack-checker/",
            "internal": true
        },
        {
            "text": "DNS lookup",
            "url": "https://ursy.com/webmaster-tools/dns-lookup/",
            "internal": true
        },
        {
            "text": "UTM builder",
            "url": "https://ursy.com/webmaster-tools/utm-builder/",
            "internal": true
        },
        {
            "text": "UTM parameters",
            "url": "https://ursy.com/wiki/utm-parameters/",
            "internal": true
        },
        {
            "text": "AI Crawler Log Analyser",
            "url": "https://ursy.com/ai-crawler-log-analyzer/",
            "internal": true
        },
        {
            "text": "log file analysis",
            "url": "https://ursy.com/wiki/log-file-analysis/",
            "internal": true
        },
        {
            "text": "AI Agent Readiness",
            "url": "https://ursy.com/agent-readiness-checker/",
            "internal": true
        },
        {
            "text": "UK Shop Compliance Checker",
            "url": "https://ursy.com/uk-shop-compliance-checker/",
            "internal": true
        },
        {
            "text": "cookie-free analytics",
            "url": "https://ursy.com/pro/cookie-free-analytics/",
            "internal": true
        },
        {
            "text": "measurement integrity",
            "url": "https://ursy.com/pro/measurement-integrity/",
            "internal": true
        },
        {
            "text": "cached-page visitors",
            "url": "https://ursy.com/pro/cached-page-visitors/",
            "internal": true
        },
        {
            "text": "MCP and agent call analytics",
            "url": "https://ursy.com/pro/mcp-and-agent-call-analytics/",
            "internal": true
        },
        {
            "text": "methodology",
            "url": "https://ursy.com/methodology/",
            "internal": true
        },
        {
            "text": "cookieless analytics",
            "url": "https://ursy.com/wiki/cookieless-analytics/",
            "internal": true
        },
        {
            "text": "Consent Mode v2",
            "url": "https://ursy.com/wiki/consent-mode-v2/",
            "internal": true
        },
        {
            "text": "Observed vs inferred data",
            "url": "https://ursy.com/wiki/observed-vs-inferred-data/",
            "internal": true
        },
        {
            "text": "Google Tag Manager: An introduction to server-side tagging",
            "url": "https://developers.google.com/tag-platform/tag-manager/server-side/intro",
            "internal": false
        },
        {
            "text": "Google Tag Manager: Map server-side tagging to a custom domain",
            "url": "https://developers.google.com/tag-platform/tag-manager/server-side/custom-domain",
            "internal": false
        },
        {
            "text": "Google Analytics: Measurement Protocol",
            "url": "https://developers.google.com/analytics/devguides/collection/protocol/ga4",
            "internal": false
        },
        {
            "text": "ICO: What are storage and access technologies?",
            "url": "https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guidance-on-the-use-of-storage-and-access-technologies/what-are-storage-and-access-technologies/",
            "internal": false
        },
        {
            "text": "ICO: Storage and access technologies, what are the exceptions?",
            "url": "https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guidance-on-the-use-of-storage-and-access-technologies/what-are-the-exceptions/",
            "internal": false
        }
    ],
    "words": 1570,
    "text": "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. Does it get round consent? 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. Why does it matter for search? 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 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. Run the Cookie Checker to see what a page sets before consent, and compare it with your cookie banner. Use the HTTP Header Checker to see cookies set in the response headers, and the Security Headers Checker for the rest of the headers. Check what the site runs with the tech stack checker: CMS, shop and analytics. Check the tagging subdomain resolves with the DNS lookup. In Google Tag Manager, check whether you have a server container as well as a web container. Tag your campaign links with the UTM builder, so sources survive the move; see UTM parameters. For bots, read logs instead: drop a server log into the AI Crawler Log Analyser. See log file analysis. For agents, run the AI Agent Readiness check: OpenAPI, .well-known files, MCP and agent instructions. 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. Do I still need a cookie banner? 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. Is server-side tracking legal in the UK? 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. Related words First-party cookies Consent Mode v2 PECR Cookieless analytics Google Analytics 4 Server logs Cookie banner Observed vs inferred data Sources Google Tag Manager: An introduction to server-side tagging, checked 24 November 2026 Google Tag Manager: Map server-side tagging to a custom domain, checked 24 November 2026 Google Analytics: Measurement Protocol, checked 24 November 2026 ICO: What are storage and access technologies?, checked 24 November 2026 ICO: Storage and access technologies, what are the exceptions?, checked 24 November 2026 Updated 24 November 2026 by URSY.com.",
    "source": "https://ursy.com/wiki/server-side-tracking/"
}