Umami is a free, open-source web analytics tool focused on simplicity and privacy. It's a self-hosted alternative to Google Analytics that respects your visitors.
What Is Umami?
Umami provides essential website metrics in a clean, modern dashboard. No cookies, no tracking, no consent banners.
Key features:
- Cookie-free tracking
- GDPR compliant by default
- Real-time dashboard
- Custom events tracking
- UTM parameter tracking
- Multi-site support
- Team sharing
- API access
- Self-hostable or cloud-hosted
- Lightweight script (2KB)
Quick Start
Cloud (free tier)
Sign up at cloud.umami.is, add tracking code:
<script async src="https://cloud.umami.is/script.js"
data-website-id="your-id"></script>
Self-Host
git clone https://github.com/umami-software/umami.git
cd umami
npm install
npx prisma migrate deploy
npm run build
npm start
Or with Docker:
# docker-compose.yml
services:
umami:
image: ghcr.io/umami-software/umami:postgresql-latest
ports:
- 3000:3000
environment:
DATABASE_URL: postgresql://user:pass@db:5432/umami
db:
image: postgres:15
environment:
POSTGRES_DB: umami
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
volumes:
- umami-db:/var/lib/postgresql/data
volumes:
umami-db:
docker compose up -d
Dashboard
Umami shows you:
- Pageviews and unique visitors
- Bounce rate and visit duration
- Referrers (where traffic comes from)
- Browsers and operating systems
- Devices (desktop, mobile, tablet)
- Countries and languages
- Pages (most visited, entry/exit)
- Events (custom actions)
All in real-time, on one page.
Custom Events
// Track button click
umami.track("signup-button");
// Track with data
umami.track("purchase", { product: "Pro Plan", price: 29 });
API
curl "https://your-umami.com/api/websites/YOUR_ID/stats?startAt=1709251200000&endAt=1711929600000" \
-H "Authorization: Bearer YOUR_TOKEN"
Build custom dashboards and reports.
Free Cloud Tier
| Feature | Free | Pro |
|---|---|---|
| Websites | 3 | Unlimited |
| Events | 10K/month | 1M+/month |
| Data retention | 1 year | 5 years |
| Team members | 1 | Unlimited |
| Custom events | Yes | Yes |
| API access | Yes | Yes |
Umami vs Google Analytics
| Feature | Google Analytics | Umami |
|---|---|---|
| Privacy | Tracks everything | No cookies |
| GDPR | Needs consent | Compliant |
| Script size | 45KB | 2KB |
| Dashboard | Complex | Simple |
| Self-host | No | Yes |
| Cost | Free (data = payment) | Free (self-host) |
| Learning curve | Hours | Minutes |
Who Uses Umami?
With 24K+ GitHub stars:
- Developers who value privacy
- Companies in EU/GDPR zones
- Bloggers wanting simple metrics
- SaaS products needing embedded analytics
Get Started
- Sign up for cloud or self-host
- Add one script tag
- See real-time analytics
Privacy-first analytics in 60 seconds.
Need web data for your analytics? Check out my web scraping tools on Apify — extract data from any website. Custom solutions: spinov001@gmail.com
Top comments (0)