What is open source analytics?
An open source analytics tool publishes its source code under a licence that lets anyone use, study, change and share it. Most also let you run the whole thing yourself, which is called self-hosting: the tracking script, the collector and the database live on servers you control. Many open source projects also sell a hosted cloud version, which pays for the development.
Open source and self-hosted are related, but not the same. A tool can be open source and used only through its vendor’s cloud, and a closed tool can be offered for on-premise installation. Ask both questions separately.
Who should pick open source analytics?
Open source is the right call when one of these is true for you:
| If you need | Why open source fits | Can CrispStats do it? |
|---|---|---|
| Data that never leaves your servers | Self-hosting keeps every event on infrastructure you control | No: hosted only |
| To audit exactly what is collected | You can read the tracking and storage code | Partly: the script’s payload is visible in your browser, the server code is not public |
| No vendor that can change prices or shut down | You can keep running the code yourself | No |
| To change how the tool works | You can fork and modify it under its licence | No |
| Zero licence cost at high volume | Self-hosting has no per-event fee, only server costs | No: paid plans from $5 a month, after a 14-day free trial |
| A policy that requires open source software | Some public bodies and companies require it | No |
If any row in that table is a hard requirement, stop here and choose an open source tool. The comparison table on this page lists the licence and self-hosting option of four of them, read from each project’s own site.
Which open source analytics tools are there?
- Umami. MIT licence. Self-hosting is free, and Umami Cloud has a free Hobby tier. Covers web and product analytics.
- Plausible Community Edition. AGPL-3.0. A self-hosted edition of Plausible; it leaves out some features of the hosted product, such as funnels and revenue goals.
- Matomo. GPL-3.0. The closest in scope to Google Analytics; the On-Premise edition is free, and Matomo Cloud is paid. Uses cookies by default, which can be turned off.
- GoatCounter. A modified EUPL-1.2. A small, single-binary tool with SQLite or PostgreSQL, and a free hosted service for reasonable public use.
- PostHog and OpenPanel. Open source product analytics, MIT outside an enterprise directory and AGPL-3.0 respectively, with session replay and more. Heavier to run yourself, and the right pick if you need product analytics rather than web analytics.
For a longer list with prices, see the Google Analytics alternatives, and for two specific matchups, CrispStats vs Umami and CrispStats vs Plausible.
What does self-hosting really cost?
The licence is free; running it is not. Before you choose self-hosting for the price alone, count the work that a hosted service does for you:
- A server and a database sized for your traffic, with room for spikes.
- Upgrades and security patches for the app, the database and the operating system.
- Backups and restores, tested, because analytics history cannot be recollected.
- Monitoring, so you notice when the collector is down before a week of data is missing.
- Your time, which is usually the largest cost for a small team.
For a team that already runs servers, that work is small and self-hosting is a good deal. For a team that does not, a hosted tool, open source or not, is usually cheaper once time is counted.
Where does CrispStats fit?
It suits you if you are happy for a vendor to host your analytics and care more about the answers than about the code: traffic, revenue by source, funnels, web vitals, errors and uptime on one dashboard, from a cookieless script of about 2.2 KB gzipped. Every account starts with a 14-day free trial with every feature and no card, so you can judge it before paying.
If you maintain an open source project and a hosted tool is fine for it, paid plans are 50% off on request. See pricing.