Umami is a modern, privacy-focused web analytics platform that offers a refreshing alternative to traditional analytics tools like Google Analytics. Built as an open-source solution, Umami empowers developers and website owners to understand their audience without compromising user privacy. The platform collects essential website metrics while maintaining complete GDPR compliance and avoiding the privacy pitfalls of mainstream analytics services.
Unlike conventional analytics platforms that track individual users across the web, Umami operates on a cookieless architecture that anonymizes data and never collects personal information. This makes it an ideal choice for developers building privacy-conscious applications who refuse to sacrifice user data for insights. Whether you're running a personal blog, a SaaS application, or an enterprise website, Umami provides the analytics visibility you need with the privacy standards users deserve.
The analytics landscape has shifted dramatically. Users increasingly expect websites to respect their privacy, and governments worldwide have enacted strict regulations like GDPR and CCPA. Google Analytics, despite its dominance, presents a fundamental problem: it feeds user data to Google's advertising ecosystem.
Umami solves this dilemma by design. The platform prioritizes user privacy from the ground up rather than treating it as an afterthought. Every design decision—from the lightweight tracking script (just 2KB) to the anonymized data collection approach—reflects a commitment to ethical analytics practices.
For developers building modern applications, choosing Umami signals a commitment to building responsible, privacy-respecting products. This isn't just about compliance; it's about building trust with your users and demonstrating that you respect their data.
The Umami dashboard gives you immediate insight into what's happening on your website right now. View active visitors, see which pages they're browsing, understand their traffic sources, and monitor conversion metrics in real time. This immediate feedback loop is invaluable for developers launching new features or responding to traffic spikes.
The real-time view displays:
Umami's event tracking system lets you measure what actually matters for your application. Go beyond page views to track meaningful user actions like button clicks, form submissions, purchases, sign-ups, or feature usage.
Implementing custom events requires minimal code. You can track events through:
umami.track('event-name', { property: 'value' })data-umami-event directly in your markupTransform raw data into actionable insights with Umami's visualization tools. The platform generates:
If you maintain multiple websites, Umami's workspace system lets you manage all of them from a single dashboard. This is perfect for developers building client projects or managing a portfolio of applications. Each site maintains independent tracking while you control everything from one central location.
| Feature | Umami | Google Analytics |
|---|---|---|
| Privacy First | Yes - Cookieless, GDPR compliant | No - Cookies, third-party tracking |
| Data Ownership | Complete control, self-hosted | Google owns the data |
| Cost | Free + self-hosting infrastructure | Free (user data is the product) |
| Open Source | Yes, MIT licensed | No, proprietary software |
| Learning Curve | Simple, intuitive interface | Steep, complex configuration |
| Real-Time Reporting | Native, immediate updates | Limited, delayed data |
| Custom Events | Easy to implement | Complex implementation |
| Setup Time | Minutes | Hours of configuration |
| Vendor Lock-in | None - export anytime | High - Google controls data |
Google Analytics dominates market share, but Umami's simplicity and privacy-first approach make it increasingly attractive to developers and companies prioritizing ethical data practices and user privacy.
Umami offers two primary deployment options for your analytics needs:
Cloud Hosted (Easiest): Sign up at umami.is and get analytics running in minutes without any server setup. Perfect for those wanting to skip infrastructure complexity and just start collecting data.
Self-Hosted (Most Control): Deploy Umami on your own server using Docker, a VPS, or a Platform-as-a-Service provider like Render or Vercel. This gives you complete data control and is what most privacy-conscious developers prefer.
Once your Umami instance is running, add the tracking script to your website's HTML:
<script async src="https://your-umami-instance.com/script.js" data-website-id="YOUR-WEBSITE-ID"></script>
Replace the URL with your instance and website ID. That's it! The 2KB script begins collecting analytics immediately without any additional configuration.
For your application, identify the actions you want to track. Common events include:
Access your Umami dashboard to view real-time visitors, custom events, traffic sources, and conversion metrics. Build custom reports focusing on metrics that impact your specific business goals and user experience objectives.
Self-hosting Umami is straightforward with Docker. Create a docker-compose.yml file:
version: '3'
services:
umami:
image: ghcr.io/umami-software/umami:latest
environment:
DATABASE_URL: postgresql://user:password@db:5432/umami
HASH_SALT: your-random-hash-salt
ports:
- "3000:3000"
depends_on:
- db
db:
image: postgres:15
environment:
POSTGRES_DB: umami
POSTGRES_USER: user
POSTGRES_PASSWORD: password
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data:
This setup gives you a complete analytics stack running on your infrastructure with PostgreSQL for data persistence and reliability.
Next.js Integration: If you're building with Next.js, installing Umami takes seconds. Add the script to your _document.js or use a Next.js Script component for optimal performance and loading behavior.
React Applications: React developers can use community packages that wrap Umami's API, making event tracking feel native to your component structure and Redux patterns.
Static Sites: Even static site generators like Hugo or Jekyll can use Umami for analytics without any build-time complexity or JavaScript frameworks.
The open-source nature of Umami creates unique benefits for developers and organizations:
Explore similar open-source development tools like GitHub for version control. The Umami GitHub repository shows over 12,500 stars and 150+ contributors, indicating strong community support and active development by privacy-focused developers worldwide.
Organizations increasingly face pressure to comply with privacy regulations globally. Umami makes compliance straightforward and built-in:
For businesses handling European users or operating in regulated industries, Umami eliminates the Google Analytics compliance headaches that have plagued many websites.
Monitor how users interact with your SaaS product. Track feature adoption, identify user bottlenecks, and measure engagement metrics without the privacy concerns of traditional product analytics platforms. Understand where users get stuck and optimize the onboarding experience.
Track which product pages receive traffic, monitor checkout completion rates, identify abandonment points, and measure campaign effectiveness across your store. All while maintaining customer privacy and avoiding cookie-related compliance issues.
Understand which articles drive engagement, monitor time-on-page metrics, analyze referral sources, and optimize content strategy based on real user data and reading patterns. See which topics resonate with your audience.
If building developer tools or platforms, track how many developers visit your documentation, measure onboarding completion rates, and understand adoption patterns—crucial for growing developer communities and improving documentation effectiveness.
Umami is an open-source, privacy-focused analytics platform that operates without cookies and doesn't collect personal data. Unlike Google Analytics, which sends user data to Google's servers, Umami gives you complete control over your analytics data. It's simpler to set up, faster to implement, and fully GDPR compliant.
Yes, Umami is completely free and open source. If you use their cloud-hosted version at umami.is, there's also a free tier. Self-hosting only costs what you pay for server infrastructure ($5-20/month for small sites), making it more economical than Google Analytics alternatives.
Setup takes three simple steps: first, deploy Umami (cloud or self-hosted with Docker), second, add a single line of JavaScript to your website's HTML, and third, start collecting analytics immediately. The entire process typically takes 10-15 minutes for developers.
Absolutely. Umami's event tracking system is one of its strongest features. You can track any user action using simple JavaScript, HTML attributes, or server-side API calls. Common tracked events include sign-ups, form submissions, button clicks, purchases, and feature usage.
Yes, Umami is production-ready for sites of any size. You can self-host it on scalable infrastructure, and it performs excellently with millions of monthly page views. The open-source nature appeals to enterprises needing to audit analytics code.
Umami achieves GDPR compliance through its privacy-first design: it uses no cookies, doesn't track users across websites, doesn't collect personal data, and stores all data on your own servers. This eliminates compliance concerns that plague Google Analytics users.
You can't directly import historical Google Analytics data into Umami, but you can run both systems in parallel during transition. Going forward, all new analytics data is collected in Umami's privacy-first system with complete data ownership.
Umami uses [PostgreSQL](/tools/postgresql) as its database backend (version 12.14 or newer recommended). This enterprise-grade database ensures reliable analytics data storage and enables sophisticated queries for reporting and real-time dashboard updates.
GA4 analytics platform for tracking user behavior, measuring conversions, and optimizing digital experiences. Event-based tracking, predictive analytics, and cross-platform measurement for web and mobile apps.
MongoDB is a flexible NoSQL document database with horizontal scaling, real-time analytics, and cloud-native architecture. Perfect for modern applications requiring schema flexibility and massive scale.
Zero-configuration mesh VPN built on WireGuard for secure networking. Connect devices, servers, and Kubernetes clusters with peer-to-peer encryption, MagicDNS, and SSH.