Open source web analytics tools
Open source tools that measure visits, sources and conversions on your website, from simple cookieless counters to full product analytics suites. Most can run on your own server, and several have hosted versions.
13 apps, sorted by GitHub stars as of 21 October 2026. Guide updated .
-
PostHog
All-in-one product platform with product and web analytics, session replay, feature flags and experiments
-
Umami
MIT-licensed, cookie-free analytics on Node.js and PostgreSQL, from pageviews to funnels and replays
-
Plausible Analytics
Lightweight, cookieless web analytics with every key metric on one dashboard page
-
Matomo
Full-featured PHP analytics platform, formerly Piwik, and the closest open source match to Google Analytics
-
Rybbit
Cookieless Google Analytics replacement with funnels, retention, session replay and error tracking
-
OpenPanel
Web and product analytics in one tool: funnels, cohorts, user profiles, session replay and A/B tests
-
GoatCounter
Deliberately simple web statistics in a single Go binary, running on SQLite or PostgreSQL
-
Countly
Analytics, crash reporting and push notifications for mobile, web and desktop apps, self-hosted
-
Ackee
Minimal, cookie-free website analytics on Node.js and MongoDB, with a GraphQL API
-
Shynet
Cookie-free Django analytics with a tracking pixel fallback, for personal and small to medium sites
-
Open Web Analytics
Long-running PHP and MySQL analytics server with heatmaps, session recordings and ecommerce tracking
-
Swetrix
Cookieless web analytics with error tracking, performance monitoring, funnels and session replay
-
Liwan
Lightweight Rust analytics in one binary with a built-in database, cookie-free and configurable
Compare at a glance
| App | License | Cookies | Self-hosting needs | Hosted version |
|---|---|---|---|---|
| Ackee | MIT | None by default | MongoDB | No |
| Countly | AGPL-3.0 | Yes, by default | MongoDB, Nginx | Yes |
| GoatCounter | EUPL-1.2 | None by default | SQLite or PostgreSQL | Yes |
| Liwan | Apache-2.0 | None by default | Embedded DuckDB only | No |
| Matomo | GPL-3.0-or-later | Yes, by default | PHP, MySQL or MariaDB | Yes |
| Open Web Analytics | GPL-2.0-or-later | Yes, by default | PHP 8.2, MySQL or MariaDB, Apache | No |
| OpenPanel | AGPL-3.0 | None by default | PostgreSQL, ClickHouse, Redis, Redpanda | Yes |
| Plausible Analytics | AGPL-3.0-or-later | None by default | PostgreSQL, ClickHouse | Yes |
| PostHog | MIT | Yes, by default | PostgreSQL, ClickHouse, Kafka, Redis, Zookeeper, MinIO | Yes |
| Rybbit | AGPL-3.0 | None by default | PostgreSQL, ClickHouse, Redis | Yes |
| Shynet | Apache-2.0 | None by default | PostgreSQL or SQLite | No |
| Swetrix | AGPL-3.0 | None by default | ClickHouse, Redis | Yes |
| Umami | MIT | None by default | PostgreSQL | Yes |
License exceptions, such as proprietary directories or paid plugins, are explained on each app page.
Find an alternative to
- Amplitude2 open source alternatives
- Google Analytics13 open source alternatives
- Hotjar1 open source alternative
- Mixpanel3 open source alternatives
Choosing web analytics software
Web analytics, product analytics and session replay
These tools do three different jobs, and many of them combine two or all three.
- Web analytics looks at a site’s audience as a whole: visits and pageviews, popular pages, referrers, search engines and campaigns, and breakdowns by country, device and browser. It is what publishers, marketers and most site owners need. Plausible, Umami, GoatCounter and Matomo start here.
- Product analytics follows users and the actions they take inside an app, such as signing up or upgrading, and links them to a person or an account. That makes funnels, retention curves, user paths and cohorts possible. PostHog and OpenPanel are built for this, and Rybbit and Umami cover part of it.
- Session replay and heatmaps show why people behave as they do rather than how many do: a replay rebuilds a single visit, and a heatmap adds up clicks and scrolling on a page. Because they record what is on screen, they need careful masking of personal data.
Start from the job you actually need. A blog does not need funnels, and a SaaS product will soon outgrow a pageview counter.
Cookies and consent in the EU
Article 5(3) of the EU ePrivacy Directive requires consent before a site stores or reads information on a visitor’s device, such as cookies or local storage, unless it is strictly necessary for a service the visitor asked for. Analytics is not one of the exceptions in the Directive itself, and each country applies the rule through its own law. The European Data Protection Board’s guidelines of October 2024 make clear the rule is not limited to cookies: tracking pixels, URL tracking and unique identifiers can fall under it too.
Some regulators allow audience measurement without consent under strict conditions. The French CNIL, for example, exempts analytics trackers only if they are used solely to measure the site’s own audience for the publisher, produce anonymous statistics only, are not combined with other data or passed to third parties in identifiable form, and do not follow people across sites. It also recommends limiting tracker lifetime to about 13 months and keeping the data for no more than 25 months, and it does not certify products: a vendor cannot call a tool “approved by the CNIL”.
This is why so many tools in this category avoid cookies and reset their visitor identifiers daily. A cookieless tool makes an exemption easier to meet, but it does not decide the question for you: the law where your visitors are, your configuration and the other scripts on your site all matter. If in doubt, ask a lawyer.
What to check before you choose
- Consent impact. Does the tool work without cookies, browser storage or identifiers that last across days, and can it be set up to meet exemption conditions such as the CNIL’s?
- Where the data lives. Self-hosted or the developers’ cloud, the hosting region, and whether the provider reuses your data for its own purposes.
- Complete data. Are reports based on every event, or sampled or modelled?
- Retention. How long raw data is kept and whether you control it.
- The cost of self-hosting. The databases the tool needs, how upgrades work, backups and how it scales with your traffic. A single Go binary on SQLite is a different commitment from a stack with ClickHouse and Kafka.
- Portability. Raw export, APIs, SQL access and importers from the tool you are leaving.
- License. Whether the whole repository is under an open source license, or some parts are proprietary or paid. The license column above shows the main license; each app page explains the exceptions.