If you already run a VPS, hosting your own analytics costs almost nothing extra and keeps visitor data on hardware you control. Plausible, Matomo, and Umami are the three self-hostable options worth your time, and they are not interchangeable: one is the lightest, one replaces Google Analytics feature for feature, and one sits in between. This guide compares what each one needs from your server so you can pick the right one and deploy it this weekend.
Why self-host analytics at all
Google Analytics 4 is free, but the data lives on Google’s servers, the tracking script is heavy, and data-protection authorities in several EU countries have ruled its data transfers non-compliant. Self-hosting fixes all three at once:
- Data stays put. Visitor data never leaves your VPS, which makes privacy conversations short.
- No banner in most setups. Plausible and Umami collect no personal data and use no cookies, so most sites skip the consent banner entirely.
- Tiny scripts. Plausible’s and Umami’s tracking scripts are under 1 KB. Pages load faster than with GA4’s heavier payload.
- Flat cost. Beyond the VPS you already pay for, the software itself is free and open source.
Plausible, Matomo, and Umami at a glance
| Plausible | Matomo | Umami | |
|---|---|---|---|
| License | AGPL-3.0 | GPL-3.0 | MIT |
| Stack | Docker: PostgreSQL + ClickHouse | PHP + MySQL/MariaDB | Docker or Node + PostgreSQL |
| Minimum RAM | ~2 GB | ~2 GB | ~500 MB |
| Tracking script | <1 KB | ~23 KB | <1 KB |
| Cookies | None | Configurable | None |
| Self-hosted cost | Free | Free | Free |
| Managed option | Plausible Cloud from ~$9/mo | Matomo Cloud from ~€29/mo | Umami Cloud has a free tier |
Pricing figures are approximate. Check the official pricing pages before you decide, since tiers change.
Plausible: the clean, lightweight dashboard
Plausible turned simple analytics into a product category. The dashboard shows visitors, sources, pages, and goals on a single screen, with no menus to get lost in. Tracking is cookieless by default and it stores no personal data, which is why many sites run it without a consent banner.
Self-hosting Plausible means running its Docker Compose stack: the app plus PostgreSQL and ClickHouse. ClickHouse is a columnar database built for aggregating event data fast, and it is also the reason Plausible needs more memory than the others. Plan for a VPS with at least 2 GB of RAM. A 1 GB box will struggle once ClickHouse starts working.
Plausible’s hosted cloud starts around $9 per month for 10,000 pageviews with a 30-day trial, and the price climbs with pageviews, so self-hosting pays off quickly as traffic grows.
Matomo: the full Google Analytics replacement
Matomo is the closest thing to a drop-in Google Analytics replacement that you can own outright. It has goals, funnels, ecommerce tracking, and a large plugin library. Heatmaps and session recording exist but ship as paid premium plugins even on the self-hosted install.
The stack is classic PHP plus MySQL or MariaDB, so it installs on any LAMP or LEMP host. The tradeoff is weight: Matomo runs background workers and cron-based archiving, and its tracking script is around 23 KB, noticeably heavier than Plausible’s or Umami’s. Give it 2 GB of RAM minimum and expect to tune the archiving cron on busy sites.
The on-premise edition is free forever. If you would rather not operate it, Matomo Cloud is the managed version, starting around 29 euros per month.
Umami: the smallest footprint
Umami is the one to pick when the VPS is small. It is a Node.js app with a PostgreSQL database, MIT-licensed, and the whole thing runs in about 300 MB of RAM. A $5 per month VPS with 1 GB handles it comfortably.
The dashboard is one page: realtime visitors, pageviews, referrers, devices, and basic custom events. It supports unlimited websites from a single install, which makes it a practical choice for freelancers tracking client sites. Tracking is cookieless and the script is tiny.
Deployment is two containers via Docker Compose, plus a subdomain and a reverse proxy for HTTPS. The default login is admin and umami, so change that password before anything else. Umami also runs a hosted cloud with a free tier if you want to try the dashboard before you self-host.
Which one fits your server
- Small VPS (1 vCPU, 1 GB RAM): Umami. It is the only one of the three that is happy here.
- VPS with 2+ GB RAM: Plausible if you want a polished, minimal dashboard; Matomo if you need GA-level depth.
- You need heatmaps or session replays: Matomo, and budget for the premium plugins.
- Many sites from one box: Umami’s unlimited-sites-per-instance model is the simplest setup.
Deploying Umami in about ten minutes
This compose file is the whole deployment. Save it as docker-compose.yml, generate the app secret with openssl rand -base64 32, then run docker compose up -d.
services:
umami:
image: ghcr.io/umami-software/umami:postgresql-latest
ports:
- "127.0.0.1:3000:3000"
environment:
DATABASE_URL: postgresql://umami:DBPASS@db:5432/umami
DATABASE_TYPE: postgresql
APP_SECRET: RANDOMSECRET
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: umami
POSTGRES_USER: umami
POSTGRES_PASSWORD: DBPASS
volumes:
- umami-db:/var/lib/postgresql/data
restart: unless-stopped
volumes:
umami-db:
Bind the port to localhost and put Nginx or Caddy in front for HTTPS. Add a site in the dashboard and paste the tracking script into your site’s <head>. Two practical tips: do not use analytics as your subdomain because ad blockers filter it, and rename the tracker script with Umami’s TRACKER_SCRIPT_NAME setting so blocklists miss it.
FAQ
Is self-hosted analytics GDPR compliant?
With Plausible or Umami, yes in the practical sense: no cookies, no personal data collected, nothing sent to third parties. Hosting on an EU-based VPS means data never leaves the jurisdiction. Matomo can be configured the same way, but check its cookie settings after install.
Do ad blockers stop these tools?
Some do, especially ones using EasyList or EasyPrivacy lists. Umami lets you rename the tracker script and the collect endpoint, which defeats most blocklists. Plausible recommends proxying the script through your own domain.
Can I migrate my Google Analytics history?
Most people start fresh. Matomo ships an import plugin for Google Analytics data. Plausible and Umami generally begin counting from install day.
Which one needs the least maintenance?
Umami. Two containers, one database, and updates by pulling a new image. Matomo needs the most: PHP updates, database tuning, and archiving crons.
There is no single winner. Umami fits small servers and simple needs, Plausible fits people who want a polished dashboard without Google, and Matomo fits anyone who needs the full analytics toolkit on their own hardware. Pick the one that matches your VPS and your traffic, deploy it today, and you can remove the GA4 snippet for good.