Pirsch is a drop-in, server-side, no-cookie analytics library for Go applications that counts visitors by hashing request data rather than storing personal information, and it uses ClickHouse as its datastore.
What it is
Pirsch is the open-source core of Pirsch Analytics, a privacy-focused web analytics system written in Go and released under the GNU AGPLv3. Rather than relying on a JavaScript snippet in the browser, it can be called from the server side of a Go application, which is the design that the project began with: an experiment in reliably analysing web traffic from the backend without cookies. The library generates a unique fingerprint for each visitor by hashing the visitor's IP address, User-Agent, the date, and a salt. The README states that no personal information is stored and that the approach is GDPR-, CCPA-, and PECR-compliant.
The concrete problem it solves is cookie- and script-based measurement in a Go stack. Because tracking happens on the server, the README notes that Pirsch can still count visitors who run ad blockers, which browser-side scripts typically miss. The visitor-level record is a daily salted hash rather than a persistent identifier, so no cookie is set and no profile is carried across days. Data is stored and queried in ClickHouse, and a dashboard front end sits on top of the library, with an interactive demo published at pirsch.pirsch.io. The upstream hosted service is operated on Hetzner infrastructure in Germany.
Key capabilities
- Server-side tracking from Go that works without cookies, using a hash of IP address, User-Agent, date, and salt as the visitor fingerprint.
- A Go library consumed as the module
github.com/pirsch-analytics/pirsch/v7, with the API reference published on go.dev.
- ClickHouse as the underlying analytical store; the test suite expects a ClickHouse database with a schema named
pirschtest and a user set to default with no password.
- Counting of visitors who use ad blockers, a direct consequence of measuring on the server rather than in the browser.
- Compliance-oriented design: no personal information stored, with the project claiming GDPR, CCPA, and PECR conformance.
- A dashboard interface for reading the collected data, demonstrated publicly at pirsch.pirsch.io.
- The same library is the core of a managed commercial offering, so the open-source core and the hosted product share an implementation.
Who uses it and how
- Go backend teams that want pageviews and traffic metrics without shipping a third-party tracking script to the browser.
- Operators in EU jurisdictions who need analytics that avoids cookie consent banners, given the stated GDPR, CCPA, and PECR posture.
- Self-hosters willing to run ClickHouse alongside their application, since the database is a hard dependency of the library's storage layer.
- Teams whose audiences block client-side analytics scripts and who want those visits represented in reporting.
- Organisations that prefer a managed service over operating ClickHouse themselves, using the hosted option at pirsch.io.
Getting started
Add the module github.com/pirsch-analytics/pirsch/v7 to a Go project and follow the code reference on go.dev and the documentation at docs.pirsch.io. Teams that do not want to operate the stack can use the hosted service at pirsch.io instead.
How it compares
No list of paid products that this project replaces is provided with this entry, so a direct commercial comparison is not possible. The project's own topic tags place it alongside Google Analytics and Plausible Analytics, which is where it positions itself in the cookie-less, privacy-first analytics space.
When to use it — and when not to
A self-hoster must operate a ClickHouse database, including the schema the test suite expects, so this is not a single-binary install. The README is short and defers setup, API usage, and operational guidance to external documentation, and contributions are only accepted when the contributor transfers ownership of the change to the maintainers, which matters for teams planning to fork. The AGPL-3.0 licence also warrants review before embedding the library in a commercial product.
project readme (upstream, from github) — read inline

Pirsch Analytics

This is the open-source core of Pirsch Analytics, a privacy-friendly web analytics solution. It originally started as an experiment to reliably analyze web traffic from the server-side using Go.
Pirsch is made in the EU 🇪🇺 and hosted on German 🇩🇪 owned servers at Hetzner. You can find an interactive demo of what the dashboard looks like today here.
How does it work?
Pirsch generates a unique fingerprint for each visitor. The fingerprint is a hash of the visitors IP address, User-Agent, the date, and a salt. The tracking works without invading the visitor's privacy. It doesn't use cookies and no personal information is stored, making it GDPR-, CCPA-, and PECR-compliant. If used on the server-side, Pirsch can track visitors using ad blockers.
Learn more about privacy on our documentation.
Documentation
You can find our documentation here. The code reference can be found on go.dev.
Contributions
Contributions are welcome! Please open a pull requests for your changes and tickets in case you would like to discuss something or have a question.
To run the tests you'll need a ClickHouse database and a schema called pirschtest. The user is set to default (no password).
Note that we only accept pull requests if you transfer the ownership of your contribution to us. As we also offer a managed commercial solution with this library at its core, we want to make sure we can keep control over the source code.
License
GNU AGPLv3