Build a server-side web analytics system. No browser script by default. Collection: a middleware for the user's own application framework that records a page view on every HTML response — not on assets, not on API routes, not on 3xx or 4xx. Ship it as a small library with an adapter for one framework and a documented interface for writing another. Record: path, referrer, user agent, accept-language, response status, and server timestamp. Session identification without cookies: hash the visitor's IP address, the user agent, the site id and a salt that rotates every 24 hours. Store only the hash, never the IP. A visitor is the same across a day and unlinkable across days, which is what makes this work without consent in most regimes — and the rotation must be genuinely enforced, with the old salt destroyed rather than archived. Bot filtering, which is the hard part without a browser to test. Layer three checks, and report how many hits each removed so the user can see what is being discarded: - A user-agent list, loaded from a file the user can update, matched case-insensitively. - A behavioural check: a session hash making more than a configurable number of requests per minute, or requesting only non-HTML paths, is reclassified as automated. - A declared-crawler check for the well-known verified crawlers via reverse DNS, cached. Dashboard: visitors, page views, sessions, bounce rate and average duration, by day; top pages, referrers, countries derived from a local IP-to-country database (loaded locally, never a lookup service), languages, and device class from the user agent. Date range comparison against the previous period. Everything filterable. Custom events: a server-side function the application calls with an event name and optional properties — a signup completed, an order placed. These are more reliable than browser events precisely because they fire where the thing actually happened. Optional browser script: a small script for the cases the server genuinely cannot see — outbound link clicks and scroll depth. Off by default, and the dashboard must show which metrics depend on it so the user knows what they lose by leaving it off. Retention and export: a configurable retention period with a deletion job, raw event export as CSV, and a documented backup procedure. Out of scope: session replay, heatmaps, funnels across sessions, cross-site identity, and any hosted multi-tenant deployment.