← All templates · Analytics and monitoring
Deploy Umami in one click
Web analytics for your sites, without cookies
A self-hosted alternative to Google Analytics and Plausible Analytics.
What is Umami?
Umami is an open-source web analytics tool, a privacy-focused alternative to Google Analytics. One script tag on your site counts visitors with no cookies, no cross-site tracking and no personal data. The dashboard shows views, visitors, bounce rate, referrers, UTM campaigns, countries and devices, and Realtime shows visits as they happen. Custom events record signups and checkouts, and the Funnel, Journey, Retention and Revenue reports build on them. Single-page apps need no extra setup.
People self-host Umami so the numbers about their visitors stay on a server they control: every event sits in its PostgreSQL database until they delete it. It is MIT-licensed, and one instance serves several people and websites, with team roles and a share link that makes chosen views public. Since version 3.4, an optional read-only MCP endpoint lets assistants such as Claude, ChatGPT and Cursor query your stats.
This template runs Umami's official image, version 3, with a Postgres 18 database that New project makes beside it, or one of yours that you pick, linked before Umami first starts. Umami makes its tables there at that start, and signs in with the address the machine writes into the project's .env.
Hosting Umami on Pethost
- You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
- New project opens at Umami, and you click Create project.
- New project also makes a new database for Umami, and links it before the app first starts: Postgres (512 MB). Or you pick one of your Postgres databases: Umami gets a user and a database of its own in it, which the other apps there cannot read, and the apps in it are backed up and restored together.
- In a minute or two Umami is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
- It is a project like any other: you or your agent can change it, roll it back or restore it.
Questions about Umami
Is Umami free and open source?
Yes. Umami is on GitHub under the MIT license, so you can run, change and self-host it at no cost. Umami Cloud is the vendor's hosted service, for people who would rather not run it.
How does Umami count visitors without cookies?
It hashes the website ID, the visitor's IP address, the User-Agent and a salt that rotates every month into a session. The IP address goes into the hash but is never saved with the session.
Is Umami GDPR compliant?
It is built for privacy: no cookies, no cross-site tracking, no personal data collected automatically. Its docs add that GDPR compliance still depends on how you configure and use it.
Does Umami get blocked by ad blockers?
Sometimes, because some blocklists block anything named analytics. A self-hosted Umami can rename its script with TRACKER_SCRIPT_NAME and its endpoint with COLLECT_API_ENDPOINT, or you can proxy both through your own domain.
How do I export data from a self-hosted Umami?
With pg_dump or plain SQL: it keeps everything in PostgreSQL, and its CSV export is for Umami Cloud only. Here the database is the Postgres project linked to Umami: its Backups tab downloads a dump, and its Data tab runs SQL.
How much memory and disk does Umami need?
Umami is light: about 200 MB of memory beside its Postgres of 512 MB, and tens of gigabytes of disk hold millions of events. New project gives each of its databases the memory the template recommends, unless you change it: Postgres (512 MB). On Pethost the Starter plan is enough for it, with room for other apps beside it.
Umami Docker Compose file
The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written. The machine writes how the app signs in to its databases there, as it links them.
Containers: umami (ghcr.io/umami-software/umami:3).
Databases, each a project of its own: Postgres (512 MB).
services:
umami:
image: ghcr.io/umami-software/umami:3
restart: unless-stopped
init: true
environment:
DATABASE_URL: ${DATABASE_URL:?reload New project to link a Postgres database, or send link_databases with env_prefix DATABASE}
APP_SECRET: ${APP_SECRET}
TWO_FACTOR_ENCRYPTION_KEY: ${TWO_FACTOR_ENCRYPTION_KEY}
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:3000/api/heartbeat"]
interval: 5s
timeout: 5s
retries: 5
start_period: 60s
More in Analytics and monitoring
- Uptime KumaUptime monitoring with alerts and status pages
- KenerA status page with uptime monitors and incidents
- BeszelLightweight server monitoring: CPU, memory, disk, network and Docker stats, with history and alerts
- changedetection.ioWatches web pages and tells you when they change: prices, restocks, news
- CheckmateUptime, page speed and infrastructure monitoring, with status pages
- GotifyA push message server: scripts send over a REST API, and the web app and the Android app show it live