Skip to content

Best Self-Hosted Web Analytics Tools

Self-hosted web analytics replaces Google Analytics with a dashboard on your own server — and, for most of the tools here, without cookies or a consent banner. The seven picks come in three weights: GoatCounter, Umami and Plausible are lightweight dashboards that answer how the site is doing; Matomo is the full, like-for-like Google Analytics replacement; Rybbit, Swetrix and OpenPanel are the newer ClickHouse-backed tools that add sessions, funnels, replays and product analytics. Decide how much analytics product you actually need first — the RAM floor and the install effort follow from that answer.

We earn commissions when you shop through the links below. Full disclosure →

Web analytics apps

Web analytics

GoatCounter

The smallest serious web analytics server: a single statically compiled Go binary (or the project's own Docker image) writing to a SQLite file, with PostgreSQL optional for big sites. It counts unique visits without cookies or identifiers, tracks referrers, campaigns, browsers, locations and screen sizes, and offers a JavaScript-free tracking pixel, a backend API, and log-file import. Its own README says it doesn't need a GDPR notice. Licensed EUPL-1.2; the same author runs a free hosted service.
GoSQLite
easyRead guide →
Web analytics

Matomo

The full-featured Google Analytics alternative — goals, e-commerce tracking, and 100% data ownership, with funnels and heatmaps available as paid premium plugins. Heavier than Plausible, but the closest like-for-like replacement for GA's depth.
PHPMariaDB
moderateRead guide →
Web analytics

OpenPanel

An open-source web and product analytics platform that pitches itself as "the power of Mixpanel with the ease of Plausible": funnels, cohorts, user profiles, session history and replay, A/B tests, revenue tracking, real-time dashboards, and SDKs for web, iOS/Android and server-side events — cookieless. Licensed AGPL-3.0; the documented install clones a dedicated git branch, a setup quiz writes .env, and a start script brings up seven containers (Caddy, PostgreSQL, Redis, ClickHouse, API, dashboard, worker). Free to self-host with unlimited events, per its pricing page.
TypeScriptNext.jsFastifyPostgreSQLClickHouseRedis
moderateRead guide →
Web analytics

Plausible

Lightweight, privacy-friendly web analytics in a single dashboard — no cookies, no personal data, GDPR-friendly by default. The Google Analytics replacement you can actually read.
ElixirClickHousePostgreSQL
moderateRead guide →
Web analytics

PostHog

An all-in-one product analytics suite: event and funnel analytics, session replay, feature flags, A/B experiments, surveys, error tracking and a SQL data warehouse behind one SDK. The self-hosted 'hobby' deploy puts the whole platform on one server, about 36 containers including ClickHouse, PostgreSQL, Redpanda (Kafka-compatible), Redis, Elasticsearch, Temporal and Caddy; PostHog's docs ask for 4 vCPU, 16 GB of RAM and more than 30 GB of storage. Self-hosting is free-plan features only, with no support and no tagged releases. The code is MIT, except the ee/ directory, which is under PostHog's proprietary enterprise licence.
PythonDjangoTypeScriptRustClickHousePostgreSQLKafka
hardRead guide →
Web analytics

Rybbit

An open-source, privacy-friendly Google Analytics alternative that goes further than a pageview dashboard: sessions, unique users, bounce rate, real-time view, goals, retention, user journeys, funnels, session replays, custom events with JSON properties, and country → region → city maps — no cookies. Licensed AGPL-3.0 and installed by one setup script that starts Caddy, ClickHouse, PostgreSQL, Redis and the two app containers; it needs a domain pointed at the server because its tracking script must be served over HTTPS.
TypeScriptClickHousePostgreSQLRedis
easyRead guide →
Web analytics

Swetrix

A cookieless, privacy-first Google Analytics alternative whose Community Edition bundles more than traffic: custom events, sessions and user flows, funnels, real-user performance monitoring and error tracking, with session replays available if you attach S3-compatible storage. The tracker script is under 5 KB. Licensed AGPL-3.0; the self-hosting repo's compose file runs the frontend, API, Redis and ClickHouse behind an nginx proxy. Alerts, email reports and the revenue/experiments/AI features are cloud-only.
TypeScriptNest.jsClickHouseRedis
easyRead guide →
Web analytics

Umami

Privacy-focused, cookieless web analytics with funnels, journeys, retention, session replays and heatmaps in the free MIT build. Two containers (Next.js + PostgreSQL) and one script tag to install.
Next.jsPostgreSQL
easyRead guide →

Head-to-heads in this category

Where to host itaffiliate disclosure
Kamaterafree trial
From $4/mo · 1 vCPU / 1 GB / 20 GB · US + EU + Asia
Start free on Kamatera → (opens in new tab)
DigitalOceanalso works on
From $6/mo · 1 vCPU / 1 GB / 25 GB · US + EU + Asia
Deploy on DigitalOcean → (opens in new tab)

Paid link — we earn a commission if you shop through it.

Replace a paid tool

Common questions

How much RAM do self-hosted apps in Web analytics need?

Across the 8 apps in Web analytics, minimums run from 256 MB (GoatCounter) to 16384 MB (PostHog).

Which app in Web analytics uses the least RAM?

Of the 6 apps in Web analytics we measured, Matomo used the least: 171 MB at idle (first boot, measured Nov 2026).

Do self-hosted apps in Web analytics support Docker?

All 8 apps in Web analytics list Docker support.

Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.