Best Self-Hosted Analytics Tools for Developers in 2026

Apr 12, 2026
15 min read
TL;DR

Compare self-hosted web analytics: Umami, Plausible CE, Matomo, PostHog, OpenPanel, and GoatCounter, with server needs, licenses, and one drawback each.

Best Self-Hosted Analytics Tools for Developers in 2026

Two monitors showing code, charts, and a network diagram beside a small computer on a desk

The best self-hosted analytics tool depends on the server you are willing to run. Umami is the easiest pick for a team that already runs Node.js and PostgreSQL. Plausible Community Edition gives you a focused traffic dashboard if you can give ClickHouse 2 GB of RAM. Matomo has the broadest reports on plain PHP and MySQL, and PostHog is the choice when you need product analytics and can live with an unsupported deployment.

Self-hosted analytics means the tracker, the collection endpoint, and the database all run on infrastructure you control. Every self-hosted tool below publishes its source and its own install instructions. They differ in license, in how much server they need, and in what the free self-hosted edition leaves out. Each fact was checked on the vendor's own pages in November 2026, and each tool gets one drawback you can verify at the linked source. Databuddy publishes this list and appears last, as the hosted option for teams that decide not to run a server.

Self-hosted analytics tools at a glance

  • Umami (MIT): website analytics on Node.js and PostgreSQL. Best for teams that already run Postgres. Drawback: email reports and the streaming API are not in the self-hosted version.
  • Plausible Community Edition (AGPLv3 or later): a traffic and goals dashboard installed with Docker Compose. Best for a focused, cookie-free dashboard. Drawback: no marketing funnels, user journeys, ecommerce revenue goals, SSO, or sites API.
  • Matomo (GPL v3 or later): the widest reporting set, on PHP and MySQL or MariaDB. Best for ecommerce and segment-heavy reporting. Drawback: Funnels, Heatmaps & Session Recording, and other premium plugins cost extra.
  • PostHog (MIT outside the ee directory): product analytics, session replay, and feature flags in one codebase. Best for product teams. Drawback: PostHog calls self-hosted deployments officially unsupported.
  • OpenPanel (AGPL-3.0): web and product analytics on Docker. Best for product events on a smaller server than PostHog. Drawback: the newest version and its installer reach paying supporters before the public release.
  • GoatCounter (EUPL 1.2, slightly modified): one static binary with SQLite or PostgreSQL. Best for a small site. Drawback: it does not track users with unique identifiers, by design.
  • Databuddy: the hosted option if you decide not to run a server. Drawback: hosted only, so it does not meet a self-hosting requirement; no heatmaps or in-app surveys.

Self-hosting requirements compared

The server figures are each vendor's own minimum or recommendation. Size for your own traffic.

ToolLicenseStack you operateServer the vendor asks forMain drawback
UmamiMITNode.js 20.19 or newer, PostgreSQL 12.14 or newerNo sizing in the install guideEmail reports and streaming API are Umami Cloud only
Plausible CEAGPLv3 or laterDocker Compose with ClickHouseAt least 2 GB RAM recommended; a CPU with SSE 4.2 or NEONNo funnels, user journeys, revenue goals, SSO, or sites API
MatomoGPL v3 or laterPHP 8.1+, MySQL 8.0+ or MariaDB 10.6+ (Matomo 6)2 CPU, 2 GB RAM, 50GB SSD for up to 100,000 pageviews a monthFunnels and Heatmaps & Session Recording are paid plugins
PostHogMIT, except eeDocker Compose deploymentAbout 4 vCPU, 16GB RAM, more than 30GB storageOfficially unsupported when self-hosted
OpenPanelAGPL-3.0Docker with Postgres, ClickHouse, Redis, and RedpandaAt least 4GB RAM, 6GB+ recommended (OpenPanel 3)OpenPanel 3 reaches paying supporters before the public release
GoatCounterEUPL 1.2, slightly modifiedOne binary plus SQLite or PostgreSQLNo sizing in the READMEDoes not track users with unique identifiers

Best self-hosted analytics tool by use case

ConstraintBest fit
A team already operating Node.js and PostgreSQLUmami
Ecommerce, segments, and paid plugins on your own PHP serverMatomo
A cookie-free traffic dashboard under AGPLPlausible CE
Product analytics + feature flagsPostHog
Product events with a smaller footprint than PostHogOpenPanel
Single binary, minimal infrastructureGoatCounter
Cloud-hosted privacy-first alternativeDatabuddy

If you want an open-source tool and have not settled on running it yourself, the open-source Google Analytics alternatives shortlist compares the same projects by license and hosted plan.

PostHog vs Plausible vs Matomo for self-hosted analytics

These three answer different questions, so pick by the report you need:

  • Plausible CE if a traffic dashboard with goals is enough. It installs with Docker Compose on about 2 GB of RAM, and self-hosting is community supported only.
  • Matomo if you need ecommerce, segments, and funnels on your own server and will pay for premium plugins. It runs on a plain PHP and MySQL host.
  • PostHog if you need product analytics, session replay, and feature flags together. It asks for the most hardware, and its README says open-source deployments should scale to about 100,000 events a month, after which it recommends PostHog Cloud.

For PostHog vs Matomo specifically: Matomo asks for 2 CPU and 2 GB RAM up to 100,000 pageviews a month, and sells funnels and heatmaps as plugins. PostHog keeps replay and feature flags in the same codebase but asks for 16GB RAM and does not support self-hosted deployments. For a side-by-side on two of them, read Plausible vs Matomo.

Umami: the default for Node.js and PostgreSQL teams

Umami homepage with the headline “Powerful analytics without the complexity” above a dashboard preview

Umami is website analytics under the MIT license, so you can modify it and ship it inside a commercial product. Its installation guide asks for Node.js 20.19 or newer (22 LTS recommended) and PostgreSQL 12.14 or newer. You can build from source, run the Docker Compose file that bundles PostgreSQL, or pull a pre-built image and point it at your own database.

Drawback: Umami's pricing page says email reports and the streaming API are not available in the self-hosted version.

The same page lists session replays and heatmaps on the Business and Enterprise Cloud plans, and a free Hobby plan with up to 100,000 events a month if you would rather not host it at all. For a feature-by-feature view, see Databuddy vs Umami.

Plausible Community Edition: a focused dashboard on ClickHouse

Plausible homepage introducing its privacy-friendly Google Analytics alternative above a traffic dashboard

Plausible Community Edition is open source under AGPLv3 or any later version, and the JavaScript tracker you embed is MIT. The Community Edition repository asks for Docker and Docker Compose, a CPU that supports SSE 4.2 or NEON (ClickHouse needs it), and recommends at least 2 GB of RAM to run ClickHouse and Plausible without running out of memory.

Drawback: Plausible's self-hosting page says marketing funnels, user journeys, ecommerce revenue goals, SSO, and the sites API are not available in Community Edition.

Community Edition is a long-term release published twice a year, so new features reach self-hosters later than Plausible Cloud. Premium support is not included; self-hosting is community supported only. For a feature-by-feature view, see Databuddy vs Plausible.

Matomo: the broadest reports on PHP and MySQL

Matomo homepage offering a free trial and a demo beneath the headline “Web & app analytics for teams who demand accuracy”

Matomo is released under GPL v3 or later. Its requirements page lists a web server such as Apache or Nginx, and for Matomo 6, PHP 8.1 or newer with MySQL 8.0 or newer or MariaDB 10.6 or newer. Up to 100,000 pageviews a month, one server with 2 CPU, 2 GB RAM, and a 50GB SSD is the minimum recommended configuration.

The free Community bundle includes ecommerce tracking, event and campaign tracking, real-time reports, segmentation, and the HTTP analytics API, with unlimited users and hits.

Drawback: Funnels, Heatmaps & Session Recording, Custom Reports, Users Flow, and Form Analytics are premium plugins. The On-Premise pricing sells them in paid bundles or one at a time.

Matomo fits agencies and teams that need deep reporting on hardware they already run. For a feature-by-feature view, see Databuddy vs Matomo.

PostHog: product analytics, if you accept running it alone

PostHog homepage styled as a desktop, with a hedgehog illustration inside a window titled “The new way to build products”

PostHog's repository is under the MIT license, except for the ee directory, which has its own license. The self-hosting docs describe a free Docker Compose deployment on a machine equivalent to 4 vCPU, 16GB RAM, and more than 30GB of storage. You get product analytics, session replay, and feature flags in the same codebase.

Drawback: PostHog states that self-hosted deployments are officially unsupported, with no customer support and no guarantees, and that all paid-plan features are Cloud-only.

Its README says open-source deployments should scale to about 100,000 events a month, and recommends PostHog Cloud beyond that. For a feature-by-feature view, see Databuddy vs PostHog, and for hosted tools that replace parts of PostHog, see the PostHog alternatives roundup.

OpenPanel: product events on a smaller server

OpenPanel homepage introducing web, product, and AI analytics with options to start a trial or watch the demo

OpenPanel is web and product analytics under the AGPL-3.0 license. Its Docker deployment guide runs on any Linux server (x64 or arm64) that can run Docker. The stack is PostgreSQL, Redis, ClickHouse, and Redpanda, and the guide asks for at least 4GB of RAM, with 6GB or more recommended.

Drawback: those docs describe OpenPanel 3, and its supporter page says OpenPanel 3 and the new openpanel CLI reach supporters (from $20 a month) ahead of the public release. The public 2.x release has separate instructions, which say it was only tested on Ubuntu 24.04.

OpenPanel suits a team that wants product event analysis without sizing a server for PostHog.

GoatCounter: one binary for a small site

GoatCounter is licensed under a slightly modified EUPL 1.2; the only change is a shorter list of compatible licenses. Its release binaries are statically compiled, and the only dependency is a SQLite database file or a PostgreSQL connection. With SQLite, there is no separate database server to run.

Drawback: the README says GoatCounter does not track users with unique identifiers. That is a design choice, so you cannot follow one visitor across visits.

If you would rather not host it, the hosted service is free for what its terms call reasonable public usage: a personal site or a small-to-medium business is fine, millions of pageviews a day is not.

If you would rather not run the server: Databuddy

Databuddy homepage with a rabbit silhouette beside the headline “Stop reading dashboards. Start asking questions.”

If you would rather not run the server, a hosted service like Databuddy handles hosting, upgrades and backups. You still choose what it collects and who can see it. Use its collection reference and Google Analytics comparison to evaluate the intended workflow.

Databuddy covers website analytics, custom events, goals, funnels, and API and MCP access to the reports. The Free plan includes 10,000 events a month.

Drawback: Databuddy is hosted only, so it does not meet a self-hosting requirement. It also has no heatmaps and does not run in-app surveys. Matomo sells a Heatmaps & Session Recording plugin and PostHog lists surveys among its products, so start there if you need either.

To test it on your own website, create a free account or open the live demo first.

What you take on when you self-host

Self-hosting gives your team deployment control and responsibility for access, retention, recovery and security. Infrastructure, backup and support suppliers may still process data; review those relationships rather than assuming there is no third-party processor.

Decide whether self-hosting solves your actual constraint

Start with the requirement: a specified processing region, database access, an existing infrastructure policy, or a supported deployment model. Self-hosting can help with these constraints, but it is not automatically cheaper or more private than a managed service.

Assign a maintenance owner and estimate their work alongside hosting costs. Include upgrades, security patches, schema changes, monitoring, incident response, and recovery tests. A deployment that works on installation day is not yet an operated analytics service.

Keep product capability separate from deployment control. Verify whether the funnel, export, or permission feature you need is included in the edition you will run. A hosted product's documentation may describe features that are not available in its self-hosted edition.

Prove the full data path with synthetic events

Before production, send a known pageview and custom event. Trace them through the collection endpoint, queue if present, database, and report. Record which services can access the records and where operational logs may retain request details.

LayerOperational check
CollectionTLS, request validation, expected website identifier, and payload limits.
StorageDatabase permissions, encryption arrangements, capacity, and retention.
ReportingSupported query access, metric definitions, and permission boundaries.
ExportRequired fields, format, pagination, and a repeatable retrieval procedure.
RecoveryA tested restore into a separate environment using synthetic records.

Access to the database does not give you a supported migration format. Document how you would read the records outside the current application's schema.

Test backup and deletion together

A backup is useful only when it can be restored. Run a restore test and confirm that the restored reports reproduce the synthetic events. Record the recovery point and time you can support.

Also document how retention and deletion apply to replicas, exports, logs, and backups. A record removed from the primary table may remain in a backup until its retention period expires. Your privacy notice and procedures should match the system you actually operate.

Review tracker behavior independently

Self-hosted does not mean cookieless. Inspect the enabled tracker for cookies and other browser storage, identifiers, event properties, replay settings, and third-party requests. Optional features can change collection behavior.

If your review requires consent, test that refusal and withdrawal change collection as intended. Hosting location alone does not decide the applicable requirement. The cookieless privacy explainer covers the difference between storage choices and the broader data-processing question.

Keep an operating record

Before launch, name the people responsible for upgrades, access reviews, backups, retention, and incidents. Keep the deployment version, configuration, synthetic verification results, and recovery instructions together.

Choose managed hosting when your team prefers to delegate this work and the provider meets your requirements. Choose self-hosting when deployment control is necessary and you can sustain the operating work. Either way, run the same ownership acceptance checks for export, access, and retention.

The GDPR picture across all tools

Cookieless operation and GDPR compliance are different questions. Review actual device access, identifiers, data, purpose, retention and processing arrangements; using cookies does not by itself establish that an implementation is unlawful.

A self-hosted installation still needs a documented processing arrangement, including infrastructure suppliers, support access and backups. Choose the location and controls required by your organization instead of assuming one hosting model is universally safest.

The GDPR compliance guide for web analytics covers the key requirements. If you want to avoid cookie consent forms, the tracking method matters as much as the hosting model.

Before you replace GA4

Inventory advertising, historical reports, and event definitions first. A new tracker does not automatically replace those dependencies or capture every visit. Run a controlled visit and a completed action through the new tool, and compare event definitions rather than expecting identical visitor totals.

For hosted options alongside self-hosted ones, see the 7 privacy-first Google Analytics alternatives.

Frequently asked questions

What is the best self-hosted analytics tool?

For most developers, Umami: it is MIT licensed and runs on Node.js and PostgreSQL. Pick Plausible Community Edition for a focused dashboard, Matomo for ecommerce and segment-heavy reports, PostHog or OpenPanel for product analytics, and GoatCounter for a small site.

What is the easiest self-hosted web analytics to run?

GoatCounter: one statically compiled binary and a SQLite file. Umami is next if you already run PostgreSQL. Plausible CE and OpenPanel run ClickHouse, and PostHog asks for 16GB RAM, so all three need more memory.

How much server does self-hosted analytics need?

By the vendors' own figures: Matomo lists 2 CPU, 2 GB RAM, and a 50GB SSD for up to 100,000 pageviews a month. Plausible CE recommends at least 2 GB of RAM, OpenPanel 3 at least 4GB, and PostHog about 4 vCPU and 16GB RAM. Umami's install guide and GoatCounter's README give no sizing.

Is self-hosted analytics free?

The software is free to download and run for all six tools. You still pay for the server, backups, and the time to upgrade and restore. Some features sit outside the free self-hosted edition: Matomo's premium plugins, Plausible's marketing funnels and SSO, Umami's email reports, and PostHog's paid-plan features.

Does self-hosting make analytics GDPR compliant?

No. Hosting location is one input. Compliance depends on what the tracker collects, the identifiers it sets, how long you keep the data, and the processing arrangements with your infrastructure suppliers.