Umami

39.7k GitHub starsumami-software/umami

Simple website stats without cookies or tracking. See visitors, pages and sources on one clear dashboard. A free, private Google Analytics alternative.

View on GitHub

Build a stack with Umami

Pick parts from it and the projects that work well with it. We check the licences together and write a prompt for your AI.

Umami
Payload
Coolify
Ghost

Your stack

Tick the parts you want to use. Projects whose parts are not listed yet can be added whole; the prompt tells your AI to find the right pieces in their code.

Website (opens in a new tab)
More actions

Why we picked it

Umami tells you what you actually want to know about your website: how many people came, which pages they read, where they came from and what they clicked. It does this without cookies and without following people around the web, so most sites can skip the cookie banner. The dashboard fits on one screen and makes sense the first time you open it. It's MIT licensed, has close to 40,000 GitHub stars, and you can run it yourself for free or use the cloud version with a free plan. Since version 3.4 it also has an MCP server, so you can ask your AI assistant how your site is doing.

About Umami

Umami is a website analytics tool. You add one small script to your site, and Umami counts your visitors and shows the results on a clean dashboard. It was started in 2020 by Mike Cao and is now one of the most popular open source analytics tools, with close to 40,000 stars on GitHub.

Umami doesn't use cookies and doesn't collect personal data. Visitors are counted without being identified, so you see real numbers without building a profile of anyone. That's why many sites that use it don't need a cookie banner.

What it can do

  • The numbers that matter. Visitors, page views, time on site, top pages, countries, devices and browsers, all on one screen.
  • Where visitors come from. See which websites, search engines, social posts and campaign links send people to you.
  • Track what people do. Count button clicks, signups, downloads and purchases as events, then build funnels to see where people drop off.
  • Revenue and goals. Track sales and see which pages and sources earn money.
  • Session replays. Watch how visitors move through a page, without recording anything they type.
  • Many websites, one place. Track all your sites from one account, and share a public stats page with anyone.
  • Ask your AI. The built-in MCP server lets assistants like Claude and ChatGPT read your stats and answer questions in plain words. It can only read, not change anything.

Where you'll meet it

Umami is a favourite of people who build websites with AI. It works with any site, from a Next.js app with Payload to a simple HTML page, because all it needs is one script tag. Ask your AI coding assistant to "add Umami analytics", and it's usually done in a minute. Hosting tools like Coolify can install Umami for you in one click.

Umami, Plausible or Google Analytics?

All three tell you how many people visit your site. They differ in privacy, cost and how much you need to learn.

UmamiThis page

Best forSimple, private stats you can host yourself for free

A clean dashboard, no cookies and a very small script. Free to host yourself, with a free cloud plan for one site.

How you use it
Your own server, or Umami Cloud
Open source
Yes (MIT)
Cost
Free to self-host; cloud is free for 1 site, then from $20/month

Best forPrivate stats with built-in goals, run by someone else

Very similar idea to Umami, with a polished cloud service. Its licence (AGPL) is stricter if you want to change it and offer it to others.

How you use it
Plausible Cloud, or your own server
Open source
Yes (AGPL)
Cost
Cloud from about $9/month; free to self-host
Google Analytics

Best forDeep marketing reports and Google Ads

Free and very powerful, but complex. It uses cookies, so you usually need a consent banner, and visitor data goes to Google.

How you use it
A Google website
Open source
No
Cost
Free

A quick way to choose: running Google Ads and need every report? Google Analytics. Want private stats without hosting anything? Plausible or Umami Cloud. Want it free, private and fully yours, or have several sites? Host Umami yourself.

How to get it

  • The easy way: sign up for Umami Cloud at umami.is. The free Hobby plan covers one website and 100,000 events a month.
  • On your own server: use the official Docker setup, or install it in one click with Coolify. It needs a PostgreSQL database.
  • Add it to your site: copy the tracking code from your Umami dashboard into your site's <head>, or ask your AI coding assistant to "add Umami analytics with this website ID".

Good to know

  • The tracking script is tiny, under 2 KB, so it won't slow your site down.
  • Some ad blockers block analytics scripts, including Umami. You can host the script under your own domain to count more visitors.
  • The free cloud plan keeps your data for 6 months and doesn't include the API or MCP access. Hosting it yourself has no limits.
  • Whether you can drop the cookie banner depends on where you are and what else your site tracks. If in doubt, check with someone who knows your local privacy rules.
  • Licence: MIT. Free to use, change and include in products you sell, as long as you keep the copyright notice.

What you can build with it

  • Seeing how many people visit your website and which pages they read
  • Tracking signups, button clicks and sales on a site you built with AI
  • Checking which links, posts and campaigns bring visitors
  • Sharing a public stats page with a client or your team
  • Replacing Google Analytics without a cookie banner

Building blocks

Umami is made of parts you can use on their own in your project. Copy a prompt to have your AI assistant add one for you, and see the licence card for what you may do with them.

  • Your own analytics dashboard

    Free to use, even in closed products

    The full Umami app: the tracking script, the dashboard and the stats API. Runs on your own server next to a PostgreSQL database.

    Use it to build

    • Websites built with AI
    • Agencies tracking client sites
    • Replacing Google Analytics
    View code
    Technical details
    Name
    umami
    What it is
    Server you run yourself
    How to use it
    Run it on your own server
    Install
    docker pull ghcr.io/umami-software/umami:latest
    Licence
    MIT License (read from umami-software/umami/LICENSE)
  • Send stats from your server

    Free to use, even in closed products

    Records page views and events from your server code instead of the browser, so ad blockers can't stop them. Works with Umami Cloud and your own Umami.

    Use it to build

    • Tracking signups and payments
    • Apps and APIs without a browser
    • Next.js server actions
    View code
    Technical details
    Name
    @umami/node
    What it is
    Client for talking to it from code
    How to use it
    Install it and use it
    Install
    npm i @umami/node
    Licence
    MIT License (read from @umami/node package.json on npm (the repo has no LICENSE file))
  • Read your stats in your own code

    Free to use, even in closed products

    Fetches visitors, pages, events and other stats from Umami, so you can show them in your own dashboard or report.

    Use it to build

    • Client reports
    • Stats inside your own admin panel
    • Internal dashboards
    View code
    Technical details
    Name
    @umami/api-client
    What it is
    Client for talking to it from code
    How to use it
    Install it and use it
    Install
    npm i @umami/api-client
    Licence
    MIT License (read from umami-software/api-client/LICENSE)

Works well with

  • Payload

    45.5k GitHub stars

    Build a website or app with a ready-made admin panel where your team edits content. Free, open source, and it lives inside your Next.js app.

    • Headless CMS
    • MIT License
  • Coolify

    64.2k GitHub stars

    Put your websites, apps and databases online on your own server, as easily as Vercel or Netlify. Free, open source and no per-project fees.

    • Deployment platforms
    • Apache 2.0
  • Ghost

    55.6k GitHub stars

    Publish a blog and email newsletter from one place, and charge for subscriptions with no cut taken. A free, open source alternative to Substack.

    • Blogging
    • MIT License

Comments

No comments yet. Be the first to share your thoughts.