Compare

The product-analytics alternative to Matomo

Matomo is a mature, full-featured web-analytics platform, a strong Google Analytics replacement. If your question is product behavior rather than web traffic, Pug is the open-source, self-hostable product-analytics alternative, with every feature in its free server. Here is how the two compare, including where Matomo is the better pick.

Choose Pug if
  • You want product analytics over a fast columnar event store
  • You want funnels and SSO without buying plugins
  • You want person-level profiles and behavioral insights
Stick with Matomo if
  • You want a full Google Analytics replacement for marketing
  • You need heatmaps, session recordings, or e-commerce reports
  • You rely on a large plugin ecosystem and years of maturity
At a glance

Pug vs Matomo, feature by feature

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

Capability Pug this page Matomo
Ownership & operations
License AGPL-3.0 GPL-3.0 or later
Self-hostable Yes Yes
Stack Go binary + PostgreSQL, ClickHouse, NATS, Dragonfly PHP + MySQL/MariaDB
Self-host price Free, every feature Free core; premium plugins extra
Pricing (checked November 2026)
Free option Cloud up to 100k events a month, or self-hosted On-Premise Community, unlimited hits; Cloud trial only
Cloud price $1 a month + $20 per million events, falling with volume From €22 a month for 50,000 hits
Paid features on your own servers None Plugin bundles from €230 a month, billed annually
History on paid cloud plans 5 years 24 months of raw data, reports kept forever
What it’s built for
Primary focus Product analytics Web analytics (GA replacement)
Marketing & traffic attribution Not in Pug Yes
Heatmaps & session recordings Not in Pug Premium plugin
Plugin marketplace Not in Pug Yes
Product analytics depth
Columnar event store for fast behavior queries Yes No
Funnels Yes Premium plugin on On-Premise
Retention cohorts Yes Cohorts plugin, Business bundle and up
User-flow Sankey & Top K Yes Users Flow, a premium plugin
Profile per person Yes Visitor Profile, with setUserId
Autocapture (clicks, forms, rage/dead) Yes Link clicks; forms with the Form Analytics plugin
AI crawlers & assistants
AI crawler reports From your server, by @pug-sh/crawlers AI Chatbots reports via Cloudflare, CloudFront, WordPress or its HTTP API
MCP server Hosted, reads plus dashboard edits A plugin, off until an admin enables it
Single sign-on
SSO in the cloud Every plan Enterprise only
SSO on your own servers Included Paid LoginSaml plugin, or the free LoginOIDC plugin
SAML Not in Pug Paid
SDKs
SDKs Web, Android, iOS, Flutter, Node, Go, Ruby JavaScript tracker, plus an HTTP Tracking API

Checked November 21, 2026 by Praveen Kumar, who builds Pug. Sources: Matomo pricing, license, server requirements, AI Chatbots reports, McpServer plugin, LoginSaml, LoginOIDC, JavaScript tracking guide. Prices change, so confirm them on Matomo’s site before you decide.

Built for behavioral queries

Pug stores events in ClickHouse, a columnar database made for fast analytical scans. Matomo runs on MySQL or MariaDB, tuned for web-analytics reporting rather than ad-hoc product analysis.

No paid plugins

Matomo On-Premise sells funnels, heatmaps, A/B tests and SAML as premium plugins or plugin bundles. Every Pug feature, funnels, retention and SSO included, is in the AGPL-3.0 server you self-host.

Product analytics, not page reports

Funnels with drop-off and timing, retention cohorts, and user-flow Sankeys are first-class, designed around what people do in your product.

The honest part

Where Matomo is still the better choice

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

  • A complete Google Analytics replacement for web traffic
  • Marketing attribution and campaign reporting
  • Heatmaps and session recordings (paid add-ons)
  • E-commerce analytics and a large plugin marketplace
  • SAML sign-in through its paid LoginSaml plugin
  • Reports kept forever on Matomo Cloud
  • Years of maturity, compliance tooling, and a big community
Migrating

Moving from Matomo to Pug

Matomo’s tracker queues commands on _paq and splits an event into category, action and name; Pug takes one event name and a properties object.

Matomo Pug What changes
_paq.push(['trackEvent', 'Video', 'Play', 'Intro']) track('video_play', { videoId: 'intro' }) Category, action and name fold into one event name plus properties. video_play is a well-known Pug event with a typed videoId.
_paq.push(['setUserId', 'USER_ID']) await identify('USER_ID') Merges the anonymous history into the person. In the default cookieless mode it does nothing until the visitor consents.
_paq.push(['setCustomDimension', 1, 'Member']) await identify(id, { tier: 'Member' }) Custom dimensions are numbered slots you configure in Matomo first. A Pug trait or property is a named key that needs no setup.
_paq.push(['trackGoal', 1]) track('signup') Matomo goals are numbered and defined in its UI. In Pug, track the action under a name and use it as a funnel step.
_paq.push(['resetUserId']) reset() Clears the stored identity and starts a new anonymous id and session, sending queued events first.
  • Matomo’s snippet sends trackPageView and, with enableLinkTracking, link clicks. Pug’s Web SDK sends page_view, click, scroll, form_start, form_submit, rage_click and dead_click from init(), with nothing to enable.
  • Matomo’s HTTP Tracking API calls move to Pug’s Node, Go or Ruby SDK, where every track call takes the distinct id first.

Pug has no importer for Matomo’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 a Matomo alternative?

For product analytics, yes. Matomo is a mature web-analytics platform focused on replacing Google Analytics for traffic and marketing. Pug focuses on product behavior: funnels, retention, user flows, and unified profiles. Pick by the question you ask: web traffic or product usage.

How does the stack differ?

Matomo runs on PHP with MySQL or MariaDB. Pug is a Go binary on PostgreSQL, ClickHouse, NATS and Dragonfly, where ClickHouse is a columnar store built for fast analytical queries over large event volumes.

How much does Matomo cost?

Matomo On-Premise is free under GPL-3.0 with unlimited users and hits, and its premium plugins cost extra: the Team bundle starts at €230 a month on annual billing, for up to 4 users and 5M hits. Matomo Cloud has a free trial with no card, then plans from €22 a month for 50,000 hits, with Enterprise through sales (checked November 2026). Pug Cloud is free up to 100k events a month, then $1 a month plus graduated per-event rates.

Does Matomo have more features?

In breadth, yes. Matomo has years of maturity, marketing attribution, heatmaps and recordings (add-ons), e-commerce reports, and a large plugin marketplace. Pug is deliberately focused on product analytics rather than matching that breadth.

Does Matomo report AI crawlers?

Yes. Its AI Chatbots reports log chatbot requests server-side through Cloudflare, Amazon CloudFront, WordPress or the HTTP Tracking API; they are on by default on Matomo Cloud, need the BotTracking plugin on On-Premise, and don’t support segmentation. Pug’s @pug-sh/crawlers runs in your own request handling on Cloudflare Workers, Vercel, Hono, Bun, Deno, Express or Node, sorts requests into answers, search, training and SEO, and checks each against the operator’s published IP ranges.

Are both open source and self-hostable?

Yes. Matomo is GPL-3.0 or later and Pug is AGPL-3.0; both can run entirely on your own infrastructure.

Does my data stay on my servers?

When self-hosted, yes: with either tool your events stay inside your own deployment.

Does Matomo support SSO?

Through paid options. Matomo Cloud keeps SAML and LDAP to Enterprise; On-Premise gets SAML from the paid LoginSaml plugin or the Enterprise bundle, and the free LoginOIDC plugin from its Marketplace covers OpenID Connect (checked November 2026). Pug builds SSO into its free AGPL-3.0 server: Google Workspace or any OIDC provider, with verified domains and Require SSO.

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