# Mixpanel SDK: 7.0 out of 10

A strong pick. 4th of 9 in [Product analytics SDKs](https://elestia.ai/opensource/analytics/index.md).

mixpanel-browser is the official, actively maintained browser SDK for Mixpanel's hosted product analytics. It is mature and well typed, and it now covers session replay, feature flags and experiments. It is a solid pick if your team has chosen Mixpanel. Its downloads grow more slowly than the median, PostHog is winning far more new projects, and Mixpanel's breach in November 2025 is a reminder that you depend on a third party holding your users' data.

**Best for:** Teams that use or plan to use Mixpanel's hosted analytics and want product managers to run self-serve funnel and retention reports.

## Scores

- **Overall: 7.0** (likely 5.9 to 8.0)
  - Claude Opus 5.5 (6.5): The SDK is well maintained and capable, and it is the right pick if your team has chosen Mixpanel for its analysis UI. For a new project, PostHog offers more tools, an open-source and self-hostable backend, and much faster adoption. That, plus the 2025 vendor breach and below-median growth, keeps Mixpanel under the top tier. The range is wide because the choice depends mostly on the hosted product, not on the SDK.
  - GPT-6.2 Sol (7.4): Mixpanel is a strong pick for teams that want mature hosted reporting and a maintained browser SDK with flexible event capture. PostHog is the stronger default for a new engineering-led project that also wants integrated error tracking and surveys, and it has more momentum among recent launches. Mixpanel's hosted-service security record and the sparse comparative SDK performance evidence keep the recommendation below the top tier.
- **Needed by many: 5.8** (likely 4.7 to 6.9)
  - Claude Opus 5.5 (6.0): Most teams that build web apps or SaaS products want product analytics. This SDK only serves people who choose Mixpanel's service, which is narrower than the whole category. It still runs on any browser framework.
  - GPT-6.2 Sol (5.5): Event tracking is useful across many web products, and Mixpanel works across frontend frameworks. This package serves browser teams that choose Mixpanel's hosted service. Developer and enterprise studies give some context, but neither measures how many JavaScript and TypeScript developers need this specific setup.
- **Helps a lot: 7.5** (likely 6.5 to 8.6)
  - Claude Opus 5.5 (7.0): The SDK has a long track record and covers tracking, identity, autocapture, session replay, heatmaps, feature flags with an OpenFeature provider, and now experiments. It ships its own types, and its API is old and stable, which helps AI agents write correct code. Limits: ad blockers stop it unless you add a proxy, the community @types package has known gaps, and PostHog bundles more tools (surveys, warehouse) behind one SDK.
  - GPT-6.2 Sol (8.0): Version 2.86.0 combines custom events, autocapture, identity management, and replay, with visual experiments available in beta. Built-in types, console debugging, and agent setup guides make basic instrumentation straightforward. The default build includes the recorder, and a user reported browser slowdowns with replay enabled. Current comparative performance and coding-agent accuracy remain poorly measured.
- **Holds up over time: 7.6** (likely 6.5 to 8.6)
  - Claude Opus 5.5 (7.5): The project had 234 commits and 15 releases in the last year, and its latest release came out five days before the read date. A commercial company with paying customers funds the work. Over 200 issues and pull requests are open, and the SDK's future depends on Mixpanel's business, which lost some trust after the 2025 breach.
  - GPT-6.2 Sol (7.7): Mixpanel maintains the SDK for its own service and shipped 15 releases and 234 commits in the past year. Recent releases fix browser behavior and add consent controls that preserve the previous defaults unless enabled. Some issues remain open for months, and recent GitHub releases repeatedly name one publisher. The two-year outlook also depends on Mixpanel's hosted service and its ability to attract new projects.
- **Used widely: 6.1** (likely 5.0 to 7.3)
  - Claude Opus 5.5 (7.0): Downloads were about 14.9M in the last 4 weeks and 1,218 dependent repos, the fourth highest in the category. Downloads grew 3.4x in a year, below the 4.1 median, so the SDK is losing ground. PostHog grew 12x and Vercel Analytics 9x over the same period.
  - GPT-6.2 Sol (5.2): Four-week downloads rose from 4.44 million to 14.90 million, or 3.36× against the catalog median of 4.1× and PostHog's 12.12×. The 1,218 tracked repos and 235 packages show established use, with more tracked repos than Amplitude and Segment and fewer than PostHog. Mixpanel also took a smaller share of recent launches in an independent sample, and no Bluesky posts linked to the repository in the collection window. Repeat installs, CDN use, and incomplete repository coverage leave the number of direct adopters uncertain.
- **Vouched for: 6.4** (likely 5.2 to 7.5)
  - Claude Opus 5.5 (6.5): News coverage of the breach named large companies on Mixpanel, such as Pinterest, Workday, Yelp and LG, and comparison articles treat it as a main option for product teams. Most comparisons come from rival vendors, and I found no independent benchmark. OpenAI stopped using Mixpanel after the breach.
  - GPT-6.2 Sol (6.2): Transporeon documents production use for retention and feature engagement, and practitioners describe Mixpanel as useful for self-serve funnels and cohorts. OpenAI previously used the service for web analytics and ended its use after the 2025 breach. Most independent evidence covers the hosted product, with little current survey or benchmark evidence about the browser SDK itself.
- **Safe: 6.4** (likely 5.3 to 7.6)
  - Claude Opus 5.5 (6.5): The SDK has no advisories on record, an OpenSSF Scorecard of 8.2, only 5 dependencies, an Apache-2.0 licence, and an SBOM published with each release. The larger risk is the service: in November 2025 an SMS phishing attack on Mixpanel staff let an attacker export customer analytics data, and HN commenters found the disclosure vague. Session replay can also capture personal data unless you configure it carefully.
  - GPT-6.2 Sol (6.3): The SDK uses the permissive Apache-2.0 license, declares five dependencies, and has zero direct OSV advisories in the snapshot. OpenSSF scores it 8.2, with strong code review, partial branch protection, no detected fuzzing, and no result for release signing. GitHub releases are immutable, while npm publishing permissions and provenance remain unverified. A report of outdated code bundled into the recorder and the 2025 hosted-service breach both lower confidence, even with documented containment steps.

## Good

- Mature SDK with built-in TypeScript types, autocapture, session replay, heatmaps and feature flags.
- Released about once a month by a funded company, with no breaking changes labelled in the last year.
- Small dependency footprint and an OpenSSF Scorecard of 8.2, with no known advisories.
- New consent_mode and on_track hooks give fine control over privacy and what gets sent.

## Bad

- It only works with Mixpanel's closed, paid cloud service, so you cannot self-host and switching vendors is hard.
- In November 2025 an attacker exported customer analytics data from Mixpanel's own systems, and OpenAI dropped Mixpanel after the breach.
- Ad blockers block its default endpoints, so you need your own proxy to get complete data.
- Its download growth is below the median, while PostHog is growing much faster in new projects.

## The numbers

- Downloads, 4 weeks: 15M
- In a year: ×3.4
- GitHub stars: 944
- Commits, 12 months: 234
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: Apache-2.0
- GitHub: https://github.com/mixpanel/mixpanel-js
- npm: https://www.npmjs.com/package/mixpanel-browser

The SDK of an analytics service that is not open source.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
