Analytics · web and product analytics · Last updated
Free alternatives to Pirsch
Can a prompt replace Pirsch?
Almost
$6/mo · Flat monthly fee · Standard plan
- Per year
- $72
- Votes
- 0 votes
How we judge
- Yes Replace it today. Nothing important is lost.
- Almost This page's verdict. Rebuildable in a weekend, but you give up things like the mobile app, the sync, or the integrations. The entry says which.
- Not yet Keep paying for now. The value is the network, the data or the compliance — a prompt doesn't replace that.
Pirsch's real trick is that tracking does not have to happen in the browser. Count the request in your own backend middleware and there is no script to block, no cookie to consent to, and no third-party request at all. Implementing that is a middleware, a hashing scheme for sessions, and a dashboard, which is a solid weekend. What takes longer is doing the identification honestly — deciding who counts as a returning visitor without a cookie, and filtering bots from server logs that have no JavaScript check to lean on.
The alternatives
| Option | Replaces Pirsch | License | GitHub stars | Last commit | Run it yourself | Hosted price |
|---|---|---|---|---|---|---|
| GoatCounter | Partial | — | 6.1K | Sep 2026 | — | — |
| Build your own (this page's prompt) | Almost | Yours | — | — | Yes | — |
| Keep paying Pirsch | Full | Proprietary | — | — | No | $6/mochecked July 31, 2026 |
Full does the whole job · Partial most of it · Niche one piece. GitHub figures as of October 18, 2026.
Or build it yourself
Count page views in middleware inside your own application, identify sessions with a daily-rotating salted hash, and read the results on a dashboard nobody else hosts.
- Build time
- A week
- You need
- Hosting, A domain name, A database
- Tested in one run
- Not yet
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.
Opening prefills the prompt — press enter to run it. The prompt as plain text
What you lose
- hosted uptime and the guarantee that collection never stops
- the email reports and the public dashboard link
- bot filtering maintained against a constantly changing list
- scroll depth and click events, which genuinely do need a browser
Why people still pay for Pirsch
What they pay for data pipeline reliability and analytical depth
Because six dollars is less than the hosting, and a vendor keeps the bot list current — which is the difference between traffic numbers you can act on and numbers inflated by crawlers.
Server-side counting is the angle: the other analytics entries in this catalogue are all script-based, and this is the one where ad blockers and consent banners stop being part of the problem.
Questions
Can I import my Pirsch data?
Pirsch exports statistics through its API, and aggregate daily figures can be loaded as historical rows so the charts have a past. Raw per-hit data is not exportable, so anything requiring re-aggregation stays where it is.
Do I still need a cookie banner?
This entry is not legal advice, and the answer depends on where your visitors are. What the design does is avoid the things that usually trigger the requirement: no cookie, no persistent identifier, no raw IP stored, and a salt that rotates daily so yesterday's visitors cannot be linked to today's. That is the same basis the privacy-first analytics products rely on.
What does it cost to run?
It runs inside an application you already host, so the marginal cost is the database. A million page views a month is a modest table. Against six dollars for the hosted plan, the saving is small and the control is the actual reason to do it.
What is the one thing that does not survive the rebuild?
The bot list. Server-side counting sees every crawler, and without a maintained filter your traffic numbers include a great deal of automation. A vendor updates that list constantly; your file goes stale the week after you write it, and the numbers drift upward without ever looking wrong.