How is it calculated?
In browser tracking, a script on the page sends each pageview and event to the analytics collector. In server-side tracking, your backend calls the collector directly, usually with a secret key, when something happens: a webhook arrives, a signup is saved, a job finishes. A variant, server-side tagging, sends browser events to your own server first, which forwards them on.
The hard part is joining the two. A server event knows nothing about the visit that led to it unless you pass an identifier along, such as a visitor id read in the browser and saved with the signup or the checkout.
Example
- 400 trial starts
- 340 browser event fires
- 60 stay unattributed
A SaaS records 400 trial starts in its database in a month, but the browser event fires only 340 times, because some visitors block the script and some close the tab before it sends. Moving the event to the server records all 400. Passing the visitor id with each one links 340 to the source of the visit; the other 60 stay unattributed, but counted.
Common mistakes
- Moving pageviews to the server and losing context. A server sees requests, not screen size, visible time or scroll depth, and it sees cached pages not at all.
- Counting bots as visitors. Every crawler request reaches the server, so server-side pageviews need their own bot filtering.
- Forgetting the identifier. Without a visitor id passed from the browser, a server event cannot be credited to a source or a campaign.
- Treating server-side as a way around consent. Where you send data from does not change what you need permission to collect.