7,363 open-source and SaaS tools, with GitHub stats refreshed every day.

10 alternatives ranked by real activity

Open-source Mixpanel alternatives

A curated, ranked list of the 10 best open-source alternatives to Mixpanel.

The best open-source alternative to Mixpanel is PostHog. If that doesn't suit you, other good options are Rybbit, OpenPanel, Countly and Talivia.

Mixpanel alternatives are mainly analytics tools. 6 of them shipped code in the last 30 days, 10 can be self-hosted, and 3 use a permissive licence.

Last updated October 2, 2026 · ranked by GitHub stars, growth and recent commits

PostHog

An open-source product platform combining analytics, session replay, feature flags, experiments, surveys and error tracking, with AI that turns signals into reports.

GitHub stars
40k
Last commit
yesterday
Latest release
desktop-v0.61.621
Self-hosted
Yes
Hosted version
Available
posthog.comPostHog homepage screenshot

PostHog is an open-source platform that bundles the tools product teams use to understand and improve what they ship. It captures event data, user sessions and errors in one place, and its newer self-driving mode aims to turn signals such as errors, rage clicks and failed queries into researched reports and pull requests that engineers review and merge.

The product suite includes product analytics with autocapture or manual instrumentation and SQL analysis, web analytics with a dashboard resembling Google Analytics, session replays for web and mobile, feature flags, experiments with statistical measurement, surveys, error tracking, logs, a data warehouse and a customer data platform. The back end is Python and the front end is React and TypeScript.

PostHog's repository license is listed as 'Other' on GitHub, so check which parts are open source and which are enterprise-only. It can be self-hosted, and the company also runs a managed cloud service. It suits product and engineering teams that prefer a single tool over separate analytics, flagging and replay vendors.

Key features

  • Product analytics with autocapture and SQL
  • Web analytics dashboard
  • Session replay for web and mobile
  • Feature flags and experiments
  • Surveys and error tracking
  • Data warehouse and customer data platform
  • AI-assisted detection of product issues

Pricing: Every product has a free monthly tier with no credit card needed. Pay-as-you-go charges only for usage beyond the free limits; per-unit rates are not shown here and volume discounts are available.

Rybbit

A cookieless, privacy-friendly open-source web and product analytics platform offered as a hosted service or for self-hosting, positioned as an alternative to Google Analytics.

GitHub stars
13k
Last commit
yesterday
Latest release
v2.9.0
Licence
AGPL-3.0
Self-hosted
Yes
Hosted version
Available
rybbit.comRybbit homepage screenshot

Rybbit is an open-source web and product analytics platform that avoids cookies and aims to be easier to read than traditional analytics suites. It is presented as a privacy-friendly alternative to Google Analytics and can be set up in a couple of minutes with a tracking script added to a site.

It covers the usual web metrics, including sessions, unique users, pageviews, bounce rate and session duration, and goes further with session replays, funnels, retention and user journey dashboards. Data can be filtered across more than fifteen dimensions, custom events carry JSON properties, locations are tracked down to city level with map views, and a real-time dashboard is included. Organizations and an unlimited number of sites are supported.

Rybbit is licensed under AGPL-3.0 and written in TypeScript. You can use the hosted service for the quickest start or deploy it on your own VPS for full control, and a live demo shows it running on a production site. The README compares it with GA4, Plausible and Cloudflare analytics on openness, self-hosting and privacy.

Key features

  • Cookieless, privacy-friendly tracking
  • Sessions, pageviews, bounce rate and duration
  • Session replays of user visits
  • Funnels, retention and user journeys
  • Custom events with JSON properties
  • City-level location tracking with maps
  • Real-time analytics dashboard
  • Multiple organizations and unlimited sites

Pricing: Standard is $13 and Pro $26 per month on annual billing for 100,000 monthly pageviews, rising with traffic. Includes a 7-day free trial; Enterprise is custom.

OpenPanel

An open-source web and product analytics platform positioned as an alternative to Mixpanel, with funnels, session replay, A/B tests, cookieless tracking and self-hosting.

GitHub stars
7.1k
Last commit
2 days ago
Licence
AGPL-3.0
Self-hosted
Yes
Hosted version
Available
openpanel.devOpenPanel homepage screenshot

OpenPanel is a web and product analytics platform, released as open source, that sets out to combine the depth of Mixpanel with the simplicity of Plausible. It is presented as an alternative to Mixpanel and Google Analytics, with optional self-hosting and cookieless tracking by default.

Its feature list covers funnels and cohorts, user profiles with session history, session replay that has privacy controls, real-time dashboards, built-in A/B testing, event and funnel alerts, custom dashboards, revenue tracking for purchases, subscriptions and lifetime value, SDKs and an API for web, mobile and server-side tracking, integrations such as Google Search Console, and an MCP server so AI clients can query user data. A comparison table in the README sets it against Mixpanel, GA4 and Plausible.

OpenPanel is written in TypeScript and licensed under AGPL-3.0. It can be self-hosted for full control of data, and a hosted version with sign-in is also available. The project emphasizes transparent pricing with no hidden costs or usage limits. It suits product teams that want privacy-friendly analytics with product-level depth.

Key features

  • Funnels, cohorts and user profiles
  • Session replay with privacy controls
  • Real-time dashboards and custom charts
  • Built-in A/B testing
  • Cookieless, GDPR-friendly tracking
  • Web, mobile and server-side SDKs
  • MCP server for AI clients

Pricing: Self-hosting is free. Cloud is priced by monthly event volume, from $2.50 for 5K events up to $900.00 for 50M, with unlimited users and a 30-day free trial.

Countly

Countly is a privacy-focused product analytics and customer engagement platform for web, mobile, desktop and IoT apps that you can run on-premises.

GitHub stars
5.9k
Last commit
yesterday
Latest release
25.03.53-LTS
Self-hosted
Yes
Hosted version
Available
countly.comCountly homepage screenshot

Countly is a product analytics and customer engagement system for organizations that insist on owning their data. Teams use it to see how people behave in mobile, web, desktop and connected products, to improve product experiences, and to automate and personalize how they engage with customers.

The repository topics reflect a broad toolset: web and mobile analytics, crash analytics, push notifications, feature flags, remote configuration, user feedback, dashboards and user journeys. Privacy is a central theme, with references to GDPR, COPPA and HIPAA, and the README stresses that, unlike SaaS-only tools, it can run on your own premises or inside a private cloud. SDKs are provided for many platforms, and the project has a Discord community.

The server code is JavaScript and published under a license that GitHub lists as 'Other', so check the repository for the terms that apply to the edition you use. Countly also offers hosted and enterprise options through the vendor. It suits product and marketing teams that need analytics without sending data to a third party.

Key features

  • Cross-platform product and user analytics
  • Crash reporting for mobile apps
  • Push notifications and engagement tools
  • Feature flags and remote configuration
  • User feedback collection
  • On-premises or private cloud deployment

Pricing: Free self-hosted Lite edition. Flex starts at $175 per month on a managed private cloud with usage-based pricing and a 14-day trial; Enterprise is custom.

Talivia

Self-hosted, revenue-focused web analytics for founders, combining session replay, revenue attribution, and payment provider data in one open-source app.

GitHub stars
2.4k
Last commit
7 days ago
Latest release
v1.0.0
Licence
MIT
Self-hosted
Yes
Hosted version
Available
talivia.comTalivia homepage screenshot

Talivia is an analytics platform that ties website traffic to revenue. This repository holds the focused open-source edition of the product at talivia.com: a self-hosted version that combines core web analytics, session replay, website collaborators, shared analytics, import and export, and customer revenue from Stripe, LemonSqueezy, Polar, Dodo, Yolfi, or a manual payment API. It is released under the MIT license and positions itself as an alternative to Datafast.

The open-source edition is a subset of the complete product. Talivia Cloud offers managed hosting and extra integrations, including Google Search Console, Bing Webmaster Tools, GitHub activity, and social mentions from X, Reddit, TikTok, and others. Documentation covers product and integration guides.

It is written in TypeScript and was created in 2026, so it is a young project that reached version 1.0.0. Talivia suits founders and small SaaS teams who want to see which traffic sources and pages lead to paying customers, while keeping analytics data on their own infrastructure.

Key features

  • Web analytics with revenue attribution
  • Session replay
  • Revenue data from Stripe, LemonSqueezy, and Polar
  • Website collaborators and shared analytics
  • Import and export of data
  • Manual Payment API

Pricing: A 14-day free trial leads to a Founding 100 offer of $9.99 per month with unlimited websites and events for 12 months; the standard event-based price that follows is not shown.

Aptabase

Open-source, privacy-first analytics for mobile, desktop, and web apps, with SDKs for many frameworks and a simple built-in dashboard.

GitHub stars
1.8k
Last commit
2 days ago
Licence
AGPL-3.0
Self-hosted
Yes
Hosted version
Available
aptabase.comAptabase homepage screenshot

Aptabase is an analytics product built specifically for apps rather than websites. It positions itself as an open-source alternative to Firebase and Google Analytics for mobile, desktop, and web applications. The code is released under the AGPL-3.0 license and the server is written in TypeScript.

It provides SDKs for a long list of frameworks and languages, including Swift, React Native, Flutter, Electron, Kotlin, Tauri, and .NET MAUI. The project emphasizes privacy: it collects minimal usage data without unique identifiers, focuses on sessions, and states compliance with GDPR, CCPA, and PECR. A built-in dashboard shows the essential metrics in a simple form.

You can use the hosted cloud service or self-host the open-source version. Aptabase suits indie developers and small product teams who want to understand how people use their apps without invasive tracking or a heavy analytics setup.

Key features

  • SDKs for Swift, React Native, Flutter, Electron, and more
  • Minimal data collection without unique identifiers
  • Session-based metrics
  • Built-in dashboard for key metrics
  • GDPR, CCPA, and PECR focus
  • Open source with a hosted option

Pricing: Free up to 20,000 events per month. Paid volume tiers run from $10 per month for 200,000 events to $450 for 50,000,000; larger volumes are custom.

Litlyx

Cookie-free web analytics with an AI-assisted dashboard, available as a hosted cloud service or self-hosted with Docker as an alternative to Google Analytics.

GitHub stars
1.7k
Last commit
10 mo ago
Latest release
v0.0.19
Licence
Apache-2.0
Self-hosted
Yes
Hosted version
Available
litlyx.comLitlyx homepage screenshot

Litlyx is a web analytics tool that tracks visitors without cookies and presents the results on a simple dashboard with AI assistance. It positions itself as an alternative to Google Analytics, Mixpanel, PostHog and Plausible, and says setup takes about thirty seconds. The project describes itself as GDPR compliant and fully self-hostable, and it is aimed at site owners and product teams who want privacy-friendly analytics.

After you add the tracking script or install the litlyx-js package from npm, it automatically records page visits, real-time users and unique visitors. You can send custom events with attached metadata, including from cURL for testing. It works with modern JavaScript and TypeScript frameworks such as React, Vue, Angular, Next.js and Nuxt, and with WordPress through a script-injection plugin.

You can sign up for the cloud version and connect with your workspace ID, or self-host the dashboard using the Docker images published on Docker Hub. A self-hosted instance appears on port 3000, and the tracking script can be pointed at it through host, port and secure attributes. The project is licensed under Apache-2.0.

Key features

  • Cookie-free visitor tracking
  • AI-powered analytics dashboard
  • Page visits, real-time and unique visitors
  • Custom events with metadata
  • npm package for JavaScript frameworks
  • WordPress support via script injection
  • Docker-based self-hosting

Pricing: There is a 30-day free trial but no free plan. With annual billing, Standard shows €10.49 and Pro €18.99 per month at the 100K pageview tier; Enterprise is custom.

Trench

Open-source event tracking and analytics infrastructure built on ClickHouse and Kafka, compatible with the Segment API and deployable as one Docker image.

GitHub stars
1.7k
Last commit
5 mo ago
Latest release
trench-js@0.0.17
Licence
MIT
Self-hosted
Yes
Hosted version
Available
trench.devTrench homepage screenshot

Trench is an event tracking system built on Apache Kafka and ClickHouse that aims to handle large event volumes and provide real-time analytics. It was created by the Frigade team to scale its own tracking pipeline, and is meant for developers who want to build product analytics dashboards or collect events for other data uses on infrastructure they control. The README describes it as cookie-free and compliant with GDPR and PECR, with users able to access, correct or delete their data.

It is compatible with the Segment API, supporting Track, Group and Identify calls, and ships as a single production-ready Docker image. A single node can process thousands of events per second, data can be queried in real time, and webhooks connect events to other destinations. A demo shows how to build a basic Google Analytics-style dashboard using Trench and Grafana.

There are two ways to run it. Trench Self-Hosted is the open-source MIT-licensed version, which needs Docker and Docker Compose and recommends at least 4 GB of RAM and 4 CPU cores for production. Trench Cloud is a fully managed serverless offering. Support is available through a Slack community.

Key features

  • Segment-compatible Track, Group and Identify API
  • Single production-ready Docker image
  • Real-time queries on event data
  • Webhooks to other destinations
  • ClickHouse and Kafka based storage
  • Cookie-free tracking with data deletion controls

Pricing: Self-hosted version is free under MIT. A managed Trench Cloud option exists; see the vendor for pricing.

Rakam

Rakam is a modular analytics platform for collecting and storing customer event data; this repository holds the API collector rather than the UI.

GitHub stars
790
Last commit
4 yr ago
Licence
AGPL-3.0
Self-hosted
Yes
Hosted version
Available
rakam.ioRakam homepage screenshot

Rakam is a modular analytics platform for building your own analytics service. This repository contains the API collector that receives customer event data from your apps, not the visualization product, which is offered separately as Rakam UI.

A typical workflow starts with collecting data from trackers, client libraries, webhooks and tasks, then enriching and sanitizing events with event mappers, and storing them in a data warehouse such as PostgreSQL, Snowflake or S3. Event data can then be analyzed with SQL and analytics APIs for funnel, retention and segmentation reports through Rakam Cloud, and developers can write their own modules.

Deployment is configured through a config.properties file. For data that fits on a single server the project recommends PostgreSQL 11, and for heavier loads events can go to a distributed log such as Apache Kafka or Amazon Kinesis in Avro format. Rakam is written in Java and licensed under AGPL-3.0, with cloud deployment tools for scaling clusters.

Key features

  • Event collection via trackers and webhooks
  • Event mappers to enrich and sanitize data
  • Storage in PostgreSQL, Snowflake or S3
  • Funnel, retention and segmentation APIs
  • Kafka and Kinesis streaming support
  • Modular design with custom modules

Pricing: Pricing is by team size rather than data volume. Startup is free for up to 2 users, Growth costs $25 per user per month billed annually, and Enterprise is quoted.

Fusion

Fusion is an open-source user behavior analytics and engagement platform, an alternative to Mixpanel and Hotjar, though the project is no longer maintained.

GitHub stars
213
Last commit
4 yr ago
Self-hosted
Yes

Fusion is a self-hostable, open-source platform for analyzing how people use web products and for engaging with them. It is described as an alternative to Mixpanel, Amplitude, Hotjar and Fullstory. The README states that the project is no longer maintained, so it is better treated as a reference or starting point rather than a supported product.

It combines a low-code analytics engine with visual analytics. Events such as page views, button clicks and form submissions are captured automatically once a tracking snippet is added, and visual recordings of user interactions are supported. Custom dashboards allow different chart types and timescales. For engagement, it offers live chat, in-app push notifications, email and micro-surveys, and email campaigns that can be triggered automatically.

Fusion is meant to be self-hosted, with the README providing Docker-based commands for production and development, and its pitch is avoiding large SaaS bills while keeping user data in your own hands. The stack includes JavaScript, Python and PostgreSQL. The repository lists its licence as other, so terms should be read before reuse.

Key features

  • Automatic event capture with a tracking snippet
  • Visual recording of user interactions
  • Custom dashboards with multiple chart types
  • Live chat with users
  • In-app push notifications
  • Email campaigns and micro-surveys
  • Self-hosting with Docker

Pricing: Free and open source; the repository lists its licence as other, and the project is no longer maintained.

Mixpanel alternatives: questions

What is the best open-source alternative to Mixpanel?
PostHog is the top-ranked open-source alternative to Mixpanel on Enlisted: An open-source product platform combining analytics, session replay, feature flags, experiments, surveys and error tracking, with AI that turns signals into reports. Other strong options are Rybbit, OpenPanel, Countly and Talivia.
Are these Mixpanel alternatives free?
All 10 are open source, so the code is free to use under its licence, and all of them can be self-hosted on your own server or computer. 9 also offer a paid or managed cloud version if you'd rather not host it yourself.
How is this list of Mixpanel alternatives ranked?
By a score built from GitHub stars, star growth over the last 30 days and how recently the code changed. 6 of these projects shipped code in the last 30 days. Data is refreshed daily, and nobody can pay to move up.

People also look for alternatives to…

View all