# Server-side tracking explained: what moves off the page, and the privacy cost

The CrispStats team · Published 2026-11-29 · Updated 2026-11-29

**TL;DR:** Server-side tracking sends an analytics event from your server instead of from a script in the visitor's browser. Teams use it for payments, renewals and other facts the page often fails to report. It cannot see what happened on the page, and it does not remove a cookie banner by itself. The privacy cost is that a server log can hold IP addresses and raw user agents. CrispStats does not store either.

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](/glossary/server-side-tracking) 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](/blog/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.

Client collection and server collection answer different questions. One table does not make them interchangeable.

|  | 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](/blog/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](/blog/how-to-filter-bot-traffic-from-analytics) 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](/blog/pii-examples-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](/blog/cookieless-analytics-explained) and in the methods comparison in [cookieless tracking explained](/blog/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.

> **A log is not automatically cleaner.** Moving collection to the server is not a privacy upgrade by itself. It is an upgrade only if the server copy keeps less identifying data than the browser path did, for a shorter time, and for a purpose you can name.

## 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](/blog/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](/glossary/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.

## Frequently asked questions

### What is the difference between client-side and server-side tracking?

Client-side tracking sends the event from a script on the page, so it can see on-page behaviour and it misses anything the script does not run for. Server-side tracking sends the event from your backend when a fact is saved, so payments and renewals are reliable and page behaviour is invisible.

### Why move a purchase event to the server?

Because the purchase is already recorded in your billing system, and the browser event is lost when a script is blocked, a tab closes, or the customer pays without loading a thank-you page. The server count can match the invoices. It still needs a visitor id if you want a source on each payment.

### Do server logs store IP addresses?

They can. A typical access log keeps the IP address, the user agent and the URL. That is the privacy cost of treating logs as analytics. This product does not store IP addresses or raw user agents. Your own logs are a separate choice.

### Does server-side tracking mean you do not need a cookie banner?

No. Sending an event from your server does not decide consent, and many server-side tagging setups still set a cookie. This is not legal advice. The cookieless tracking guide sets out the distinction.

### Can the server see scroll depth and screen size?

Not from the request alone. Those come from the browser. Moving page views to the server and expecting the same on-page detail is a common mistake. Keep that measurement in the page script.
