First, a true story
In 2020, Umami's author Andre Koch made a decision:
Open source Umami completely (MIT license) while offering a hosted version at umami.is.
Many said at the time: "If you open source it, people will just git clone and deploy. Who will pay for your hosted version?"
Four years later:
- Umami has 25k+ stars on GitHub
- The hosted service at
umami.isis estimated to earn $20-30k per month (based on public data and similar products' ARPU) - Andre hired a full-time developer and maintains Umami full-time
- Over 5,000 websites use Umami's hosted service
The core of this story is not "how open source makes money," but "how open source builds trust, and how trust turns into revenue."
What is Umami?
In one sentence: A privacy-friendly open source website analytics tool, a lightweight alternative to Google Analytics.
What it does is simple:
- You place a snippet of Umami tracking code on your website
- Visitor behavior is recorded (page views, referrers, devices, geolocation)
- You view the statistics in the Umami dashboard
Differences from Google Analytics:
| Dimension | Google Analytics | Umami |
|---|---|---|
| Data ownership | Google takes it | Your own database |
| Privacy compliance | Requires cookie consent | Not required (no personal tracking) |
| Feature complexity | Very complex | Simple, core metrics at a glance |
| Deployment | Only Google's | Can be self-hosted |
| Cost | Free (but data is taken) | Open source free, hosted version paid |
Why should entrepreneurs care about Umami?
Reason 1: It solves a growing problem
After GDPR (EU privacy law), using Google Analytics on websites has become increasingly troublesome.
- Courts in multiple EU countries ruled that Google Analytics is non-compliant (because data is sent to the US)
- Many websites are looking for alternatives
- But there are few alternatives, and even fewer good ones
Umami's positioning is exactly: privacy compliant + lightweight + self-hostable
This is not a niche need. There are hundreds of millions of websites globally, and at least a few million need privacy-compliant analytics tools.
Reason 2: Its business model is validated
Umami proves that open source projects can offer hosted services and make money.
The logic is:
- Code open source → developers use it for free → word of mouth → user growth
- Some users don't want to self-host (troublesome, need to maintain servers) → use official hosted version → pay subscription
- Some companies need SLA support, private deployment → pay annual fee → high customer value
This is not theory; it's a validated business model.
Reason 3: Many derivative products can be built on it
Umami solves the core scenario of "website analytics." But based on its data, you can build:
| Derivative Product | Description |
|---|---|
| Industry report SaaS | Aggregate anonymous data from multiple websites to generate industry traffic reports |
| Competitor traffic monitoring | Use Umami's data API to build competitor traffic estimation tools |
| Privacy compliance consulting | Help businesses migrate from Google Analytics to Umami |
| Custom analytics dashboard | Build custom visualizations for businesses based on Umami data |
Umami's core architecture (what entrepreneurs need to understand)
If you want to build something based on Umami, or create a similar product, you need to understand its architecture.
Tech stack
- Frontend: Next.js (React)
- Backend: Next.js API Routes (or a standalone Node.js service)
- Database: PostgreSQL or MySQL
- Analytics: Vercel Analytics (optional)
Core data flow
Visitor accesses your website ↓Browser loads Umami tracking script (umami.js) ↓Script sends data to Umami backend API (/api/collect) ↓Backend stores data in database (events table) ↓You view statistics in Umami dashboard (reads events table, aggregates)
Key database table structure
Umami's database design is very simple, with only a few core tables:
| Table Name | Purpose |
|---|---|
website | List of tracked websites |
session | Visit sessions (one visit by one visitor) |
event | Specific events (page views, custom events) |
account | User accounts |
Entrepreneur's perspective: This table structure is simple enough that you can easily extend it (e.g., add a conversion table to record conversion events).
What products can be built based on Umami?
This is the key point. I'll give you 3 specific entrepreneurial directions:
Direction 1: Vertical industry analytics tools
Umami is a general website analytics tool. You can build a customized version for a vertical industry.
Example: Build a "blog-specific analytics tool"
- Based on Umami, modified
- Add: reading time, share count, comment count, popular article ranking
- Simplified interface (only show metrics bloggers care about)
- Pricing: free version + $29/month paid version
Why would people buy?
Because Google Analytics is too complex, Umami is general, but bloggers want something "designed specifically for people like me."
Direction 2: Umami hosted service (China version)
Umami's official hosted version is abroad. Access from China is slow, and some companies worry about data being abroad.
You can create a China-based Umami hosted service:
- Deployed on domestic servers
- Provide Chinese interface and Chinese customer support
- Help companies comply with GDPR/domestic privacy regulations
- Pricing: from 49 RMB/month
Real case:
Some people in China are already selling "Umami one-click deployment scripts" (99 RMB each), and some are offering Umami hosted services. This shows real demand.
Direction 3: Value-added services from Umami data
Umami collects website visit data. If you have multiple clients, aggregating this data can be valuable.
Example: Build an "industry traffic benchmark report"
- Include all websites you serve (anonymized)
- Generate report: "Where does your website rank in the industry?"
- Free version: view your own data
- Paid version: view industry benchmarks, competitor comparisons
Why is this feasible?
Because many website owners care about "how are my competitors doing?" but Google Analytics doesn't provide this feature. You can do it based on Umami data.
Umami's limitations (pitfalls you need to know)
1. Limited real-time capability
Umami's data updates are not fully real-time (1-5 minute delay). If you need second-level real-time statistics, you need to modify it yourself.
2. Performance issues with large data volumes
Umami performs well under 1 million PV per month. Beyond that, you need to optimize the database (add indexes, partitions).
3. Limited custom events
Umami supports custom events (e.g., "user clicked buy button"), but configuration is not very flexible. If you need complex funnel analysis or attribution analysis, you need to extend it yourself.
How to get started?
If you're interested in Umami and want to build something based on it:
Step 1: Deploy an instance
# Fastest deployment with Vercel (5 minutes)# 1. Fork Umami to your GitHub# 2. Import project in Vercel# 3. Connect PostgreSQL database (Vercel has free Postgres trial)# 4. Deployment complete
Or deploy locally with Docker:
docker run -d -p 3000:3000 \ -e DATABASE_URL="postgresql://user:pass@host:5432/umami" \ -e HASH_SALT="random-string" \ umami/umami:postgresql-latest
Step 2: Connect a real website
After deployment, be sure to connect a real website (your own blog, a friend's small site).
Only by using it in a real scenario will you know:
- Which features are insufficient?
- Which metrics are most important to your users?
- Which processes can be optimized?
Step 3: Read the source code, find areas for improvement
Umami's code quality is good and suitable for learning.
Focus on:
pages/api/collect.js— data collection logicpages/api/websites/[id].js— API designcomponents/— frontend components (see how data visualization is done)
Final words
The most valuable lesson from Umami's story is not the "technology," but "how to turn an open source project into a business."
Andre didn't raise a penny, didn't hire a salesperson, just by writing code and word of mouth, turned Umami into a project that can support a team.
Core logic:
- Build a product that solves a real problem (privacy-compliant website analytics)
- Open source (build trust, lower the barrier to entry)
- Offer a hosted version (let users pay for convenience)
- Continuous maintenance (this is why most open source projects die)
If you're thinking "what project can make money," Umami's model is worth studying deeply.
Not to copy Umami (too late), but to understand: open source can be your marketing channel, not just charity.