Umami is a modern, privacy-focused analytics platform. An open-source alternative to Google Analytics, Mixpanel and Amplitude.
Umami is a modern, privacy-focused analytics platform. An open-source alternative to Google Analytics, Mixpanel and Amplitude.
Umami is a privacy-first analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place — no cookies, no surveillance, self-hosted or in the cloud.
A detailed getting started guide can be found at umami.is/docs.
git clone https://github.com/umami-software/umami.git
cd umami
pnpm installCreate an .env file with the following:
DATABASE_URL=connection-urlOptional: set API_URL to change the base URL used by internal UI API calls.
Relative paths are served under BASE_PATH; absolute URLs are proxied through the local /api route.
For example, API_URL=/internal-api or API_URL=https://api.example.com/api.
Optional: set TWO_FACTOR_ENCRYPTION_KEY to a 64-character hex string to enable two-factor
authentication. Generate one with openssl rand -hex 32. Two-factor authentication is unavailable
and cannot be required until this key is set.
The connection URL format:
postgresql://username:mypassword@localhost:5432/mydbpnpm run buildThe build step will create tables in your database if you are installing for the first time. It will also create a login user with username admin and password umami.
pnpm run startBy default, this will launch the application on http://localhost:3000. You will need to either proxy requests from your web server or change the port to serve the application directly.
Umami provides Docker images as well as a Docker compose file for easy deployment.
Docker image:
docker pull docker.umami.is/umami-software/umami:latestDocker compose (Runs Umami with a PostgreSQL database):
docker compose up -dTo get the latest features, simply do a pull, install any new dependencies, and rebuild:
git pull
pnpm install
pnpm buildTo update the Docker image, simply pull the new images and rebuild:
docker compose pull
docker compose up --force-recreate -dExternal auth/OIDC
Website list with includeTeams omits team websites for team members and view-only members (also MCP list_websites)
3.4.0: `umami.identify()` splits a visitor into two sessions
Allow the session replay recorder to customize/normalize the recorded URL (or run in manual mode)
Team websites are not returned by `/websites` or MCP `list_websites`
MCP: `filters.event` on the stats, traffic and metrics tools returns zeros
Docker image drops the pnpm overrides, so it ships mysql2 3.15.3 and deepmerge-ts 7.1.5
Not listening on all interfaces when running in pod
Performance metrics endpoint returns 503 from the UI but 200 via API key (v3.4.0, PostgreSQL)
Allow selecting 12/24 hr format