Guide

The 7 best self-hosted analytics tools in 2026

Self-hosting analytics keeps your data on your own servers, and it is an operational decision as much as a feature one. Here are 7 tools, with the services and memory each one takes to run and what its free build leaves out, read from the vendors’ own pages on November 21, 2026.

Self-hosting is an ops decision

Every tool here is open source and self-hostable, so the question isn’t whether you can own your data; it’s what running the tool costs you in operations, and what the free build gives you. Weigh four things:

  • Footprint: how many services you have to stand up and keep alive.
  • Infrastructure: a lightweight script and one database, or a columnar event store and a queue.
  • Maintenance: updates, backups, and scaling as your volume grows.
  • Edition: which features, SSO among them, the free self-hosted build leaves out.

We build Pug, so it is listed first, and its entries say what it needs and what it lacks. This roundup focuses on the self-hosting experience. For a feature-by-feature look at what each tool measures, see the best open source analytics tools.

What it takes to run

From each vendor’s own docs, checked November 21, 2026: Pug requirements, Pug deployment, PostHog self-hosting, GoatCounter README, Umami install docs, Plausible Community Edition, Rybbit self-hosting, Rybbit manual setup, Matomo requirements, Matomo installation.
ToolWhat you runMemoryInstall
PugOne Go binary and a static dashboard, on PostgreSQL 15+, ClickHouse, NATS JetStream, and Dragonfly or Redis 7+Ballparks: 10 GB for dev or staging; ClickHouse 16 GB and PostgreSQL 8 GB for small productionpug start on one node; binaries or GHCR images in production
PostHogWeb, worker and plugin containers, on ClickHouse, Kafka, ZooKeeper, PostgreSQL, Redis, MinIO and Caddy16 GBA Docker Compose script; no new Kubernetes deployments
GoatCounterOne static binary, on SQLite or PostgreSQLNot documentedA prebuilt binary, Docker or Docker Compose
UmamiA Node.js 20.19+ app, on PostgreSQL 12.14+Not documentedDocker, Docker Compose, a pnpm build or a third-party Helm chart
PlausibleThe app, on PostgreSQL and ClickHouse; the CPU needs SSE 4.2 or NEONAt least 2 GBDocker Compose
RybbitA Next.js client and a Node.js backend, on PostgreSQL, ClickHouse and Redis, with Caddy optionalAt least 2 GBA setup script, or Docker Compose by hand
MatomoMatomo 6 on PHP 8.1+ and a web server, with MySQL 8.0+ or MariaDB 10.6+2 GB up to 100k page views a month; 8 GB up to 1MThe release zip and its web installer, or Docker

Free builds and prices compared

Pug’s prices are on its pricing page. The rest are from each vendor’s own pages, checked November 21, 2026: PostHog license, PostHog self-hosting, PostHog SSO, PostHog SAML, PostHog pricing, GoatCounter license, GoatCounter README, GoatCounter pricing, Umami license, Umami pricing, Plausible self-hosting, Plausible pricing, Rybbit license, Rybbit README, Rybbit pricing, Matomo licences, Matomo pricing, Matomo Login SAML.
ToolLicenseFree build leaves outSSO on your serversHosted instead
PugAGPL-3.0Nothing: no plans or limitsGoogle Workspace or OIDC, free; no SAML100k events a month free, then $1 a month plus $20 per million, falling with volume
PostHogMIT, except ee/Every paid-plan feature, and supportGitHub and GitLab; no Google, and SAML needs an enterprise license1M analytics events a month free, then $0.00005 an event
GoatCounterEUPL 1.2, slightly modifiedNothing, per its READMENone documentedFree for reasonable public use; no paid plan
UmamiMITEmail reports and the streaming APINone documented; SAML SSO is on Cloud Enterprise100k events a month free; Pro is $20 a month with 1M
PlausibleAGPL-3.0 or laterFunnels, user journeys, ecommerce revenue goals and the sites API; two releases a yearNot in the Community EditionFrom $9 a month for 10k pageviews, after a 30-day trial
RybbitAGPL-3.0Web Vitals (Cloud only)None documented; SSO is on Cloud EnterpriseFrom $13 a month billed yearly for 100k pageviews, after a 7-day trial
MatomoGPL v3 or laterFunnels, heatmaps and A/B tests, as paid plugins; bundles from €230 a month billed yearlyLogin SAML plugin at US$2,669 a year, or the Enterprise bundleFrom €22 a month for 50,000 hits

Product analytics: heavier, but behavioral

Pug

Open-source (AGPL-3.0) product analytics with unified profiles and autocapture, built to be self-hosted. There are two deployables: the pug Go binary (the API server, every worker, migrations and the CLI) and the dashboard, which is static files. They need four stores you may already run, or managed equivalents: PostgreSQL 15+, ClickHouse, NATS JetStream, and Dragonfly or any Redis 7+. pug start runs the server and every worker in one process on a small node; in production each role is its own container image on GHCR, for amd64 and arm64, on a VM, a container platform or Kubernetes. The SDKs (Web, Android, iOS, Flutter, Node, Go and Ruby) need one option, endpoint, to point at your server.

A self-hosted server has no plans or limits. SSO through Google Workspace or your own OIDC provider (Okta, Entra ID, Keycloak) works on it, it serves its own MCP endpoint at /mcp, and the Web SDK defaults to cookieless tracking, so no identifier is stored on the device until a visitor consents. It has no session replay, feature flags, experiments or surveys. If you’d rather not run it, Pug Cloud runs the same code, and a month of 1M events costs $19.00 there. Best for: product analytics you own without service sprawl. See self-hosted product analytics with Pug, the setup guide and Pug’s self-hosting requirements.

PostHog

Open source (MIT outside its ee/ directory) and very broad: analytics, replay, flags, experiments. The catch for self-hosters is in PostHog’s own self-hosting docs. They offer no customer support and no guarantees for self-hosted instances, keep every paid-plan feature on PostHog Cloud, and no longer support new Kubernetes deployments, which leaves the Docker Compose “hobby” deploy, sized at 4 vCPUs, 16GB of RAM and more than 30GB of storage. Its open-source disclaimer recommends PostHog Cloud for most companies and says the single-machine deploy is unlikely to scale past a couple hundred thousand events without significant effort. Best for: teams that want breadth and will accept the ops. Details: PostHog alternative, or the best PostHog alternatives product by product.

Web analytics: lightest to run

GoatCounter

Web analytics in one statically compiled binary, under a slightly modified EUPL 1.2 (GoatCounter’s license). Its only dependency is somewhere to store a SQLite file or a PostgreSQL connection: SQLite works for most smaller sites, PostgreSQL performs better on larger ones, and the README puts the bottleneck in how many different pages the views spread over, not how many views there are (GoatCounter’s README). It counts unique visits without cookies or persistently stored personal data, and reports browsers, locations, screen sizes, referrers and campaigns. There is no paid edition: goatcounter.com is free for reasonable public use and funded by donations (GoatCounter’s pricing). Best for: pageview counts with the smallest stack here.

Umami

A cookieless web-analytics tool on Node.js and one PostgreSQL database (Umami’s install docs): two services, one of the smallest stacks here. Funnels, journeys and retention are in the self-hosted build, session replays (v3.1) and heatmaps (v3.2) come to self-hosted installs as well as Cloud, and a read-only MCP server ships from v3.4, off by default (Umami Cloud vs self-hosted). Best for: a minimal, low-maintenance traffic dashboard. If you outgrow it, see Umami vs product analytics.

Plausible

Cookieless web analytics with a light script. The Community Edition runs from a Docker Compose file with PostgreSQL and ClickHouse, and its README recommends at least 2 GB of RAM (Plausible Community Edition): a bit more to run than Umami, and still modest. It comes with basic bot filtering and without premium support (Plausible’s self-hosting page). Best for: clean traffic analytics without cookie banners. Compare it as a Plausible alternative.

Rybbit

Cookieless web analytics under AGPL-3.0 (Rybbit’s license) with funnels, goals, journeys, retention and session replays on top; Web Vitals are the one feature its README marks Cloud only (Rybbit’s README). A setup script starts it with Docker Compose: a Next.js client, a Node.js backend, PostgreSQL, ClickHouse and Redis, plus Caddy if you want it to terminate TLS. The guide asks for at least 2GB of RAM, and an ARM server must be ARMv8.2-A or newer for ClickHouse (Rybbit’s self-hosting docs, manual setup). Best for: web analytics with funnels and replays, if you’ll run a ClickHouse stack for it.

Matomo

The fullest open-source web analytics platform and the closest to Google Analytics, on PHP with MySQL or MariaDB (Matomo’s requirements). More capability means more to operate. Its MCP server is a free plugin, off until an administrator enables it (Matomo’s MCP plugin), and its AI Chatbots reports, which count AI chatbot requests through server-side integrations for Cloudflare, Amazon CloudFront and WordPress, need the BotTracking plugin activated when you self-host (Matomo’s AI Chatbots docs). Best for: a complete GA replacement for web and marketing. See the Matomo alternative.

How to choose

If you only need website traffic, the lightest tools (GoatCounter, Umami, Plausible) are the easiest to run; Rybbit adds funnels and replays on a ClickHouse stack, and Matomo is the fullest GA replacement if you accept more ops and paid plugins. If you need product behavior (funnels, retention, and a profile per person), you’re into product analytics, where the event store makes the stack heavier. There, the difference is the edition: PostHog keeps its paid features on its cloud, and Pug’s free build has all of them. Whatever you choose, self-hosting keeps every event on your own infrastructure. If you’re moving off Google, our how to replace Google Analytics 4 guide walks through it.

What is the best self-hosted analytics tool?

It depends on what you’re measuring and how much ops you want. For website traffic, GoatCounter and Umami are the lightest to run, Plausible and Rybbit add ClickHouse, and Matomo is the fullest but heavier. For product analytics (funnels, retention, profiles), PostHog is the broadest, but its makers don’t support self-hosting it. Pug puts every feature in its free build, on one Go binary and four stores.

How much does it cost to self-host analytics?

The software is free: you pay for infrastructure. Matomo sizes a server for up to 100,000 page views a month at 2 CPUs and 2 GB of RAM, Plausible and Rybbit ask for at least 2 GB, and PostHog’s deploy needs 16GB. Product-analytics tools need a columnar event store (ClickHouse) and more memory, plus the time to maintain and update the stack. Some free builds also leave features out: Matomo sells funnels, heatmaps and SAML as paid plugins, and PostHog keeps its paid-plan features on its cloud.

Is self-hosting analytics worth it?

If data ownership, privacy, or avoiding per-event SaaS bills matters, yes. The cost you take on is operational: provisioning, updates, and scaling. Tools with a smaller footprint (one binary, fewer services) lower that cost.

Which self-hosted analytics is easiest to run?

For web analytics, GoatCounter is the simplest: one statically compiled binary and a SQLite file. Umami is next, a Node.js app and one PostgreSQL database. For product analytics, Pug runs the API and every worker as one Go binary, on PostgreSQL, ClickHouse, NATS JetStream, and Dragonfly or Redis, and pug start runs all of it as one process on a small node.

Which self-hosted analytics tools include SSO?

Pug’s self-hosted build includes SSO through Google Workspace or your own OIDC provider (Okta, Microsoft Entra ID, Keycloak); it doesn’t support SAML or SCIM. Matomo sells SAML as its Login SAML plugin, listed at US$2,669 a year, or in its Enterprise bundle. PostHog’s open-source build supports GitHub and GitLab sign-in but not Google, and its SAML needs an enterprise license. Plausible’s Community Edition leaves SSO out, Rybbit lists SSO on its Cloud Enterprise plan, and Umami and GoatCounter document no SSO for self-hosted installs.

Run Pug on your own servers

One Go binary and four stores, free under AGPL-3.0 with every feature. Pug Cloud runs the same code, free up to 100k events a month.

Questions? Email hello@pug.sh