DEV Community

Arhan Khan
Arhan Khan

Posted on

Umami for Beginners: Self-Hosted Analytics You Actually Own

Umami is an open-source, self-hosted alternative to Google Analytics. You run it on your own server, your data stays yours, and the dashboard shows you the essentials — visitors, page views, referrers, and devices — without cookies or personal tracking.

How does it work? You deploy Umami with Docker, add your website, and paste a small tracking script into your pages. Every visit is recorded in your own database, and the dashboard reads from that database. Nothing leaves your server.

# Run Umami with Docker
docker run -d --name umami -p 3000:3000 ghcr.io/umami-software/umami:postgresql-latest
Enter fullscreen mode Exit fullscreen mode
<script defer src="https://analytics.yoursite.com/script.js"
  data-website-id="YOUR_WEBSITE_ID"></script>
Enter fullscreen mode Exit fullscreen mode

Umami is great for beginners because the setup is genuinely simple for a self-hosted tool — Docker does the heavy lifting — and the interface has almost nothing to learn. You get the numbers you actually use, and because you own the data, there is no vendor deciding what you can see.

When should you use it? For a personal blog, a side project, or a small business site where you want analytics without paying a monthly fee or sending your visitors' data to a third party. It is also a good first self-hosted project if you are learning Docker.

The limits are worth knowing. You are responsible for the server — updates, backups, and uptime are yours. The feature set is deliberately small, so if you need funnels, A/B tests, or ecommerce reports, Umami will not do that. And a single server means analytics stop if the server goes down.

Start today: spin up Umami locally, add a test website, and open your own page a few times. Watching the counter go up on a dashboard you own is a good feeling.

Top comments (0)