Setup and data
Server-side tracking explained: what moves off the page, and the privacy cost
Server-side tracking sends events from your server, not the browser. Why teams do it, what it cannot see, and the privacy cost of server logs that can hold IPs.
The CrispStats team · · 9 min read
In short
Server-side tracking is one of those labels that covers two different setups. In one, your server tells the analytics tool that a payment or a signup happened. In the other, a browser hit is relayed through a server you control and then forwarded, sometimes still carrying a cookie. The glossary entry keeps those apart. This page explains the difference from a script on the page, why teams move events, and what it costs in privacy.
How cookieless methods relate to consent, including server-side tagging that still sets a cookie, is in cookieless tracking explained. Read that for the regulatory comparison. This page does not restate it, and it is not legal advice.
What is server-side tracking?
Server-side tracking is sending an analytics event from your own server, when something happens in your backend, instead of from a script running in the visitor’s browser. A paid invoice, a renewal, a signup row written to the database, or a job that finished are the usual events.
A related setup, often called server-side tagging, is different: the browser still sends the hit, but it sends it to a server you run, and that server forwards it to the vendors you choose. The glossary notes both. The rest of this page uses ‘server-side tracking’ for events born on the server, and says so when it means the relay. The two are easy to sell under one name, and they do not have the same privacy properties.
How is server collection different from a script in the browser?
Server collection records a fact your backend already knows, while a browser script records what the page did, and each one misses the other’s half. The script sees the page. The server sees the system of record. Neither is a complete copy of the visit.
| Row | Script in the browser | Your server |
|---|---|---|
| Sends the event | The page, if the script runs | Your backend, when the fact is saved |
| Sees well | Page views, clicks, on-page events | Payments, renewals, signups in your database |
| Misses | Blocked scripts, tabs closed too soon | Screen, scroll, time on the page, cached pages |
| Often has in the log | Whatever the collector keeps | The request, which can include the IP address |
A page view is a poor candidate to move wholesale onto the server. The server sees a request for a URL. It does not see how far someone scrolled, how long the tab was visible, or a page served from the browser’s cache that never hit you. The glossary lists that as a standing mistake. Keep page behaviour on the page, and send the facts the page cannot be trusted to deliver.
Why do teams send events from the server?
Teams send events from the server because the important fact is already there, and the browser is an unreliable messenger for it. Ad blockers, a closed tab, a flaky connection and a thank-you page that never loads all drop a script event. The invoice still exists.
- Money. A payment webhook or a row in your billing system is the sale. The confirmation page is a guess at the sale.
- Renewals and refunds. Nobody is sitting on a page when a subscription renews. The server is the only place that event happens.
- Actions behind a login that must match the database. If the product counts 500 new projects and the script counted 400, the database is the one you can reconcile.
- Callers that never run JavaScript. Some clients and some automated jobs never load the page script at all.
Reliability is the reason. Bypassing a consent choice is not. The glossary says this directly: where you send the data from does not change what you need permission to collect. Cookieless tracking explained is the longer version of that point, including why a relay that still sets a first-party cookie has not become cookieless.
What can the server not see?
The server cannot see what happened on the page: which button was hovered, how far the article scrolled, whether the tab was in the foreground, or a cached view that produced no request. It also cannot tell two people behind one address apart, and it sees every crawler that hits the URL.
That last point matters if you are tempted to treat access logs as analytics. Crawlers request pages and never run your script, so a server-side pageview count includes them unless you filter them. How to filter bot traffic is about that problem on the collection you already have. A log that counts every hit will look busier than a browser script, and a lot of the extra is not a person.
What is the privacy cost of collecting on the server?
The privacy cost is that a server log can hold the IP address, the raw user agent and the full URL, often for longer than an analytics event needs, and sending ‘from the server’ does not delete any of that. A browser script can be designed to drop those values after a moment. A default web server log is designed to keep them.
An IP address in the hands of the site is personal data in the usual reading, which examples of personal data in analytics covers. If the URL contains an email, a name or a token, the log stores that too. Forwarding the raw request to a vendor forwards the IP as well, unless you strip it first. Server-side tagging makes this easier to get wrong, because the relay sits where the full request is visible and can be copied to several destinations.
CrispStats does not store IP addresses and does not store raw user agents. They can be read at the edge to build a daily visitor hash and a device type, and then dropped. How that hash works, and what it deliberately forgets, is in cookieless analytics explained and in the methods comparison in cookieless tracking explained. Pointing your own long-lived access logs at a warehouse is a different system, and those logs can hold the IPs this product does not keep. Events you send should not carry personal data either: no email, no name, no raw address.
Does server-side tracking remove the need for a cookie banner?
No. Server-side tracking does not remove the need for a cookie banner. A banner is about what you store or read on the device and what you collect, not about which machine sends the HTTP request. This is general information, not legal advice.
Most server-side tagging setups still set a first-party cookie so the visitor can be recognised later. The consent rules for that cookie do not disappear because your server wrote it. An event that is only a server record of a purchase, with no identifier from the device, is a different case, and it still is not a way to measure anonymous browsing. The full distinction is in cookieless tracking explained. Your counsel, not this page, decides what your site has to ask.
How does a server event join the visit that caused it?
A server event joins the visit only if you pass it an identifier that analytics already has for that visit, usually an anonymous visitor id read in the browser and saved with the signup or the checkout. Without that id, the event can still be counted, and it cannot be credited to a source, a campaign or a landing page.
Example. A billing server records 500 paid invoices in a month. The thank-you page event fires 410 times. The other 90 never reached the browser: the tab closed, the script was blocked, or the customer paid from an invoice email with no page in between. Sending the payment from the server counts all 500. If 410 of those calls include the visitor id saved at checkout, those 410 can be tied to a visit. The other 90 are revenue with no source. That is the same shape as the glossary’s example, with different figures, and it is an example, not a measured gap on your site.
Forgetting the id is the common failure. So is putting the customer’s email in the event to paper over it. The payment system already knows the customer. Analytics should receive the anonymous id, the amount and the fact of the payment, not a dossier.
How does CrispStats collect browser events and server events?
CrispStats uses both, for different facts. Page views and on-page events come from the browser script. Your server can send custom events and revenue with a request and a secret key, and it can pass the visitor id you saved from the browser so the event joins that visit. Payments can also be read from the providers you connect with a key. The server-side tracking entry states that split, and the server event docs are at https://docs.crispstats.com/track/server-side-events.
The product does not store IP addresses or raw user agents, does not set cookies by default, and does not identify who a visitor is. A server event does not change those limits: if your own logs keep IPs, that retention is yours, not the analytics product’s. AI crawler hits are reported from the edge or from middleware, because crawlers never run the script. They are a count of bots, not a reason to turn human page views into log lines.
Terms in this guide
Free tools
- Analytics cost calculatorPick a monthly volume and compare list prices of privacy-friendly analytics tools at that exact volume. Dated, and never estimated between tiers.
- AI crawler checkerCheck whether a site's robots.txt lets GPTBot, ClaudeBot, PerplexityBot and other AI crawlers in, by training, search and user fetch, with the deciding rule.
More guides
All guides- Privacy · 14 minCookieless tracking: the methods, and which ones still need consentCookieless tracking covers server-side tagging, fingerprinting, IP tracking and daily hashes. How each method works and what regulators say about consent.
- Privacy · 9 minCookieless analytics explained: how visitors are counted without cookiesHow cookieless analytics counts unique visitors with a daily rotating hash instead of a cookie, what it can and cannot tell you, and the trade-offs.
- Privacy · 13 minPII examples: what counts as personal data in analytics, by regulatorPII examples from NIST, the GDPR and the CCPA side by side: names, emails, IP addresses, cookie ids and more, and where each one leaks into analytics.