Compare

The product-analytics alternative to Umami

Umami is privacy-first web analytics with funnels, retention and a timeline per identified visitor, and session replay on its Business plan. Merging anonymous history into each person and autocapturing every click are product analytics, and that is where Pug, open source and self-hostable, goes further. Here is how the two compare, including where Umami is the better pick.

Choose Pug if
  • You want identify() to merge anonymous visits into the person
  • You want clicks, rage clicks and dead clicks as events you can query
  • You want product analytics with mobile SDKs, not web-only
  • You want AI crawler requests counted, not excluded
Stick with Umami if
  • You want simple website traffic analytics and nothing more
  • You prefer an MIT license and a Node and PostgreSQL stack
  • You want session replay and heatmaps next to your analytics
  • You don’t need anonymous history merged into each person
At a glance

Pug vs Umami, feature by feature

Each row sets what ships in Pug today against what Umami documents. A dash in Pug’s column is a feature Pug doesn’t have.

Capability Pug this page Umami
Ownership & operations
License AGPL-3.0 MIT
Self-hostable Yes Yes
Self-hosted edition Every feature Same analytics as Cloud; email reports are Cloud-only
Stack Go binary + PostgreSQL, ClickHouse, NATS, Dragonfly Node + PostgreSQL
Pricing (checked November 2026)
Free tier 100k events a month, 1 year of history 100K events a month, 1 website, 6 months of history
First paid plan $1 a month + $0.00002 per event, falling with volume Pro: $20 a month with 1M events, then $0.00003 per event
History on paid plans 5 years 2 years on Pro, 5 years on Business
Sites or projects No extra cost 1 on Hobby, 20 on Pro
What it’s built for
Primary focus Product analytics Web analytics
Cookieless by default Yes Yes
Ultra-light tracking script Not in Pug Yes
Product analytics depth
Funnels Yes Yes
Retention Yes Yes
User journeys / flow Yes Yes
A timeline per identified person Yes Yes
identify() merges earlier anonymous visits Yes Links sessions to the id, without merging them
Clicks, rage and dead clicks as events Yes In heatmaps, from sampled sessions
Session replay & heatmaps Not in Pug Business plan, and self-hosted
AI crawlers & assistants
AI crawler requests Reported from your server by @pug-sh/crawlers Bots excluded by default
MCP server Hosted, reads plus dashboard edits Read-only; Pro and up on Cloud, v3.4+ self-hosted
Single sign-on
Your own identity provider Every plan, over OIDC Cloud Enterprise plan only
SAML Not in Pug Cloud Enterprise plan
SSO on a free self-hosted install Yes No
SDKs
SDKs Web, Android, iOS, Flutter, Node, Go, Ruby A tracker script, plus an HTTP API for sending events

Checked November 21, 2026 by Praveen Kumar, who builds Pug. Sources: Umami pricing, Cloud and self-hosted, install requirements, license, bot setting, MCP, Distinct IDs, heatmaps, tracker functions, track events. Prices change, so confirm them on Umami’s site before you decide.

Anonymous history, merged into the person

Umami’s identify() links each session to a Distinct ID and joins them in a profile timeline, but its docs say it doesn’t merge sessions, and page views sent before identify() stay anonymous. Pug starts cookieless too, and once a visitor consents, identify() merges their anonymous activity into the person, so a funnel that starts before sign-up counts them once.

Crawlers counted from your server

Umami excludes bots from its statistics by default, and AI crawlers never load its script anyway: they fetch HTML and run no JavaScript. Pug’s @pug-sh/crawlers reports them from your own request handling on Cloudflare Workers, Vercel, Hono, Bun, Deno, Express or Node, sorted into answers, search, training and SEO, with each IP checked against the operator’s published ranges.

Tracking AI crawlers from your server

Every click as an event

Umami records a click as an event where you add a data-umami-event attribute or a umami.track() call, and its heatmaps show clicks from a sample of sessions. Pug’s Web SDK sends every click, scroll, form start and submit, rage click and dead click as an event from init(), so any of them can be a funnel step.

The honest part

Where Umami is still the better choice

Umami has each of these and Pug doesn’t. If your team needs one, Umami is the better fit.

  • An MIT license and a Node and PostgreSQL stack, no ClickHouse required
  • Session replays and heatmaps, self-hosted too
  • Segments, cohorts and boards on every Cloud plan
  • 40k GitHub stars and years of maturity
  • A tiny tracking script with minimal performance cost
  • SAML single sign-on on its Cloud Enterprise plan
Migrating

Moving from Umami to Pug

Umami’s tracker has the same two calls Pug’s Web SDK starts with, track() and identify(), so most rows carry over with a rename.

Umami Pug What changes
umami.track('Signup button') track('signup_button') Pug event names take letters, digits, _, . and -, so a name with a space needs a new one. The SDK drops such an event with a console warning.
umami.track('checkout', { plan: 'pro' }) track('checkout', { plan: 'pro' }) Event data becomes event properties, unchanged.
data-umami-event="Signup button" track('signup') Pug has no attribute events. It autocaptures the click itself; to give one a name of its own, call track() in the handler.
umami.identify('user-42', { plan: 'pro' }) await identify('user-42', { plan: 'pro' }) Umami saves the data on the session; Pug saves the traits on the person and merges its anonymous history. In the default cookieless mode identify() waits for consent.
  • Umami sends a pageview per page on its own. Pug’s Web SDK sends page_view, click, scroll, form_start, form_submit, rage_click and dead_click from init(), so expect more events per visit, and set autoCapture to an allowlist if you want fewer.
  • Server-side sends move from Umami’s HTTP API to Pug’s Node, Go or Ruby SDK, where every track call takes the distinct id first.

Pug has no importer for Umami’s history, so it counts from the day its SDK goes in: run both until the reports you rely on are rebuilt in Pug. To bring an export across, the Node SDK’s track() takes a timestamp option.

What Pug does well

What ships in Pug today

Pug ships autocapture on the web, seven insight types (trends, funnels, retention cohorts, segmentation, user flows, Top-K and a map), unified profiles, dashboards and a Live view, in the AGPL-3.0 server and on Pug Cloud alike. A self-hosted install is the pug Go binary on PostgreSQL, ClickHouse, NATS and Dragonfly, with no plans or limits.

Is Pug an Umami alternative?

Partly. They start from different places. Umami is privacy-first web analytics with funnels, retention, journeys and a timeline per identified visitor; Pug is product analytics built around a person whose anonymous history merges on identify(), with every click autocaptured as an event. If you want lightweight website stats, Umami is excellent; if you want per-user behavior, choose Pug.

Does Umami have funnels and retention?

Yes: funnels, goals, journeys, retention, segments and cohorts, on Umami Cloud and self-hosted alike. The difference is identity. Umami’s identify() links sessions to a Distinct ID without merging them, and page views sent before it stay anonymous, while Pug’s identify() merges that earlier activity into the person.

Is Pug cookieless like Umami?

By default, yes. Until a visitor consents, the Web SDK stores no identifier on the device, and the server counts them with a hash whose salt is deleted every day, so today’s visitors can’t be linked to yesterday’s. Each day’s hash is a new person, so cookieless traffic counts toward events and sessions but stays out of unique-user counts, funnels and retention, and identify() does nothing until consent. Grant consent and the same install gives you identified profiles with their anonymous history merged in.

How much does Umami cost?

Umami Cloud’s Hobby plan costs $0 for up to 100K events a month on one website, with six months of history. Pro is $20 a month with 1M events included, then $0.00003 per event, two years of history and MCP access; Business is $200 a month with 10M events, then $0.00002 per event, five years of history, session replays and heatmaps (checked November 2026). Pug Cloud is free up to 100k events a month, then $1 a month plus $0.00002 per event, falling with volume: 1M events a month bills $19.00, and 10M bills $167.00.

Are both open source and self-hostable?

Yes. Umami is MIT on Node with PostgreSQL, and self-hosted Umami has the same analytics as Umami Cloud, replays and heatmaps included; email reports stay on Cloud. Pug is AGPL-3.0, with every feature in the server you self-host.

Is Pug as lightweight as Umami?

No. Umami is deliberately minimal, a tiny script and a simple stack. Pug captures more (autocapture, profiles, custom events) and uses ClickHouse for fast behavioral queries, so it does more work.

Does Umami support SSO?

On Umami Cloud’s Enterprise plan, through SAML; its docs describe no SSO for self-hosted Umami (checked November 2026). Pug includes SSO on every plan, a free self-hosted install included.

Send your first event.

Create a project, add the snippet, and watch the Live view fill up. Or open the demo first: the real dashboard on a sample pet shop, with no sign-up.

Questions? Email hello@pug.sh