# The open-source, self-hostable Mixpanel alternative

Mixpanel is cloud-only and can’t be self-hosted. Pug is the open-source Mixpanel alternative you run yourself: trends, funnels, retention, flows and profiles.

Source: https://pug.sh/compare/mixpanel-alternative

Mixpanel is mature product analytics that runs only in its own cloud. Pug has the same core shape (trends, funnels, retention, flows and profiles) with an AGPL-3.0 server you can self-host. Here is how the two compare, including where Mixpanel is the better pick.

Choose Pug if

- You want to self-host, or keep raw events on your own servers
- You want a published per-event rate and no self-serve volume cap
- You want SSO on the free plan

Stick with Mixpanel if

- You want a free tier of 1M events and the most mature product
- You need advanced reports, session replay, and pipelines
- You need SAML, or SCIM on Enterprise

## Pug vs Mixpanel, feature by feature

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

| Capability                              | Pug                                                      | Mixpanel                                                                                     |
| --------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| **Ownership & operations**              |                                                          |                                                                                              |
| License                                 | AGPL-3.0 server, MIT SDKs                                | Proprietary platform, open-source SDKs                                                       |
| Self-hostable                           | Yes                                                      | No                                                                                           |
| Raw events on your own servers          | Yes                                                      | No                                                                                           |
| **Pricing (checked November 2026)**     |                                                          |                                                                                              |
| Free tier                               | 100k events a month                                      | 1M events a month                                                                            |
| Past the free tier                      | Never blocked or dropped                                 | Querying pauses on Free                                                                      |
| Paid plan                               | $1 a month + $20 per million events, falling with volume | Growth from $0 with 1M events included; $140 a month at 1.5M                                 |
| Per-event rate published                | Yes                                                      | Shown in-app                                                                                 |
| Self-serve volume                       | Published rates at any volume                            | Up to 20M events a month                                                                     |
| **Product analytics (same category)**   |                                                          |                                                                                              |
| Trends                                  | Yes                                                      | Yes                                                                                          |
| Funnels                                 | Yes                                                      | Yes                                                                                          |
| Retention cohorts                       | Yes                                                      | Yes                                                                                          |
| User-flow Sankey                        | Yes                                                      | Yes                                                                                          |
| Unified person profiles                 | Yes                                                      | Yes                                                                                          |
| **Scale & breadth**                     |                                                          |                                                                                              |
| Advanced reports & formulas             | Not in Pug                                               | Yes                                                                                          |
| Session replay                          | Not in Pug                                               | Yes                                                                                          |
| Data pipelines / warehouse export       | Not in Pug                                               | Yes                                                                                          |
| Integration marketplace                 | Not in Pug                                               | Yes                                                                                          |
| **Single sign-on**                      |                                                          |                                                                                              |
| SSO on the free plan                    | Yes                                                      | No                                                                                           |
| Your own identity provider              | Every plan, over OIDC                                    | Growth (from $0) and Enterprise                                                              |
| SAML 2.0                                | Not in Pug                                               | Yes                                                                                          |
| SCIM provisioning                       | Not in Pug                                               | Enterprise plan                                                                              |
| **AI assistants**                       |                                                          |                                                                                              |
| Hosted MCP server                       | Yes                                                      | US, EU and India endpoints                                                                   |
| What an agent can change                | Creates and edits dashboards, never deletes              | Dashboards, Lexicon and data quality, deletes included                                       |
| Listed in Claude’s connectors directory | Yes                                                      | Yes                                                                                          |
| In ChatGPT                              | Yes                                                      | Yes                                                                                          |
| **Bots & AI crawlers**                  |                                                          |                                                                                              |
| Bot traffic                             | Tagged on arrival, out of insights by default            | AI agent and bot labels on events it receives                                                |
| Crawlers that never run JavaScript      | Reported from your server by @pug-sh/crawlers            | Classified only if you send them as events                                                   |
| **SDKs**                                |                                                          |                                                                                              |
| SDKs                                    | Web, Android, iOS, Flutter, Node, Go, Ruby               | JavaScript, iOS, Android, React Native, Flutter, Unity, Python, Node.js, Ruby, PHP, Go, Java |

Checked November 21, 2026 by [Praveen Kumar](https://github.com/poluruprvn), who builds Pug. **Sources:** [Mixpanel pricing](https://mixpanel.com/pricing/), [pricing docs](https://docs.mixpanel.com/docs/pricing), [SSO and SCIM](https://docs.mixpanel.com/docs/access-security/single-sign-on), [MCP server](https://docs.mixpanel.com/docs/mcp), [Claude connector](https://claude.com/marketplace/connectors/mixpanel), [bot traffic](https://docs.mixpanel.com/docs/tracking-best-practices/bot-traffic), [SDK list and licenses](https://docs.mixpanel.com/docs/tracking-methods/sdks), [JavaScript SDK](https://docs.mixpanel.com/docs/tracking-methods/sdks/javascript). Prices change, so confirm them on Mixpanel’s site before you decide.

## Why look for a Mixpanel alternative

### Open source, not a black box

Mixpanel open-sources its SDKs under Apache 2.0 or MIT, but the platform is proprietary and runs only in its cloud. Pug’s server and dashboard are AGPL-3.0, so you can read the code, self-host it with every feature, and keep each event on your own servers.

### An MCP server with one write

Mixpanel’s hosted MCP server builds dashboards, organizes Lexicon, and has a Delete-Dashboard tool. Pug’s server has 17 tools: 16 read, and upsert_dashboard creates or edits a dashboard. No connection can delete or share a dashboard, erase a person, or send events.

[The Pug MCP server](https://pug.sh/mcp)

### A rate you can read before you sign up

Mixpanel publishes calculator totals rather than a per-event rate, shows your rate in-app once you are a customer, and moves you to a custom annual contract past 20M events. Pug Cloud publishes the rate for every tier at any volume, and going over the free allowance never pauses a query or drops an event.

## Where Mixpanel is still the better choice

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

- A more mature, polished product with deep features
- Advanced reports, formulas, and custom analyses
- Session replay, with 10K replays a month on Free
- Data pipelines and warehouse exports
- SDKs for React Native, Unity, Python, PHP and Java
- SAML sign-in, and SCIM provisioning on Enterprise
- A free tier of 1M events a month

## Moving from Mixpanel to Pug

mixpanel-js and Pug’s Web SDK map almost call for call. The two things to plan for are event names with spaces and super properties.

| Mixpanel                                   | Pug                                                      | What changes                                                                                                                                  |
| ------------------------------------------ | -------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `mixpanel.track('Image Upload', props)`    | `track('image_upload', props)`                           | 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. |
| `mixpanel.identify('12345')`               | `await identify('12345')`                                | Merges the anonymous history into the person. In the default cookieless mode it does nothing until the visitor consents.                      |
| `mixpanel.people.set({ plan: 'Premium' })` | `await identify('12345', { plan: 'Premium' })`           | Profile properties ride on identify(). Call it again with new traits to update them.                                                          |
| `mixpanel.register({ name: 'Sam' })`       | `beforeSend: (e) => { e.customProperties.name = 'Sam' }` | Pug has no super properties. A beforeSend hook in init() adds the key to every event (npm and loader installs, not the one-tag install).      |
| `mixpanel.time_event('Image Upload')`      | No equivalent                                            | Pug has no timed events. Measure the duration in your code and send it as a property.                                                         |
| `mixpanel.reset()`                         | `reset()`                                                | Clears the stored identity and starts a new anonymous id and session, sending queued events first.                                            |

- Mixpanel’s page view tracking is off until you set track_pageview, and its autocapture events start with $mp_. Pug’s Web SDK sends page_view, click, scroll, form_start, form_submit, rage_click and dead_click from init(), so rebuild each report on Pug’s names.
- people.set_once has no Pug counterpart: identify() traits overwrite the stored value, so check for a value before you send it if it must stay first-write.
- Server code moves to Pug’s Node, Go or Ruby SDK, where every track call takes the distinct id first, as in the Node SDK’s pug.track(userId, kind, props).

Pug has no importer for Mixpanel’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.

- [Web, Android, iOS, Flutter, Node, Go & Ruby SDKs](https://pug.sh/sdks)
- [Pug docs](https://docs.pug.sh)

## 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.

- [How the Pug pipeline works](https://pug.sh/platform)
- [The insight types](https://pug.sh/analytics)
- [Self-hosting docs](https://docs.pug.sh/self-hosting/)
- [Analytics cost calculator](https://pug.sh/tools/analytics-cost-calculator)
- [Best Mixpanel alternatives](https://pug.sh/learn/best-mixpanel-alternatives)

## Questions about switching from Mixpanel

### Is Pug a Mixpanel alternative?

Yes. It’s the closest fit by purpose. Mixpanel and Pug are both product analytics tools with trends, funnels, retention, flows, and profiles. The key difference is that Mixpanel is proprietary, cloud-only SaaS, while Pug is open source (AGPL-3.0) and self-hostable.

### Can you self-host Mixpanel?

No. Mixpanel runs only in its own cloud. Pug self-hosts under AGPL-3.0, or runs on Pug Cloud.

### How does Mixpanel’s pricing compare?

Mixpanel’s Free plan covers 1M events a month and pauses querying past it. Growth starts at $0 with 1M events included and needs a credit card; its calculator shows $140 a month for 1.5M events on monthly billing, and past 20M events pricing becomes a custom annual contract (checked November 2026). Pug Cloud is free up to 100k events a month, then $1 a month plus graduated per-event rates: 1.5M events a month bills $28.00, and 20M bills $307.00.

### Is Pug as feature-rich as Mixpanel?

No. Mixpanel is more mature, with advanced reports, session replay, data pipelines, and a large integration ecosystem. Pug focuses on the core insight types and unified profiles, open and self-hostable.

### Do I own my data with Pug?

Self-hosted, every raw event stays in your own ClickHouse. On Pug Cloud, the Node, Go and Ruby SDKs read profiles, activity and insights back with your private key. With Mixpanel, your events live in its cloud.

### Does Mixpanel include SSO?

SAML 2.0 SSO comes with Growth, which starts at $0, and with Enterprise; the Free plan has none, and SCIM provisioning is Enterprise only (checked November 2026). Pug includes SSO on every plan, Free and self-hosted included, through Google Workspace or your own OIDC provider such as Okta or Microsoft Entra ID; Pug has no SAML or SCIM.

## Other Pug comparisons

- [vs PostHog](https://pug.sh/compare/posthog-alternative)
- [vs Amplitude](https://pug.sh/compare/amplitude-alternative)
- [vs Heap](https://pug.sh/compare/heap-alternative)
- [vs Plausible](https://pug.sh/compare/plausible-alternative)
- [vs Matomo](https://pug.sh/compare/matomo-alternative)
- [vs Umami](https://pug.sh/compare/umami-alternative)
- [vs Segment](https://pug.sh/compare/segment-alternative)
- [vs Google Analytics](https://pug.sh/compare/google-analytics-alternative)
- [Replace GA4, step by step](https://pug.sh/compare/google-analytics-replacement)
- [vs Firebase](https://pug.sh/compare/firebase-analytics-alternative)
- [vs Aptabase](https://pug.sh/compare/aptabase-alternative)
- [vs Countly](https://pug.sh/compare/countly-alternative)
