Mixpanel SDK
A strong pick. 4th of 9 product analytics SDKs.
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
Overall7.0
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- npm downloads ratio vs medianDownloadsRatio: 3.4x vs 4.1 median
- peers PostHog JS: Grows far faster, with more commits
- github.com/mixpanel/mixpanel-js/releases: Active, feature-rich releases
- securityweek.com/openai-user-data-exposed-in-mixpanel-hack/amp: Breach led a major customer to leave
GPT-6.2 Sol: 7.4, likely 6.3 to 8.5
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.
- github releasesLastYear and peers: Steady Mixpanel releases alongside much faster PostHog install growth
- docs.mixpanel.com/docs/tracking-methods/sdks/javascript: Full browser instrumentation and debugging documentation
- posthog.com/docs/libraries/js: Browser SDK integrates event capture, error tracking, and surveys
- howmakersbuild.com/tools/mixpanel: PostHog leads Mixpanel among sampled recent launches
- openai.com/index/mixpanel-incident: Confirmed customer data exposure in the hosted service
Needed by many5.8
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.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.
- category.job: Records user actions in an app; a common need in web apps
- project.note: SDK for one closed analytics service
GPT-6.2 Sol: 5.5, likely 4.3 to 6.7
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.
- docs.mixpanel.com/docs/tracking-methods/sdks/javascript: Framework-independent browser tracking with npm and CDN setup
- survey.stackoverflow.co/2026/technology/data: Broad web development participation among respondents
- cardinalpath.com/wp-content/uploads/2026_State_of_Digital_Experience-Analytics.pdf: Dedicated product analytics detected at 12% of Fortune 1000 companies
Helps a lot7.5
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- github.com/mixpanel/mixpanel-js/releases: Recent releases add flags, replay fixes, consent_mode and experiments
- github.com/orgs/mixpanel/discussions/673: Users need a proxy to get around ad blockers
- npm hasTypes: Types bundled in the package
- posthog.com/blog/posthog-vs-mixpanel: Comparison showing PostHog bundles more tools (vendor source)
GPT-6.2 Sol: 8.0, likely 6.9 to 9.1
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.
- docs.mixpanel.com/docs/tracking-methods/sdks/javascript: Event and identity APIs with console debugging
- github.com/mixpanel/mixpanel-js: Default recorder bundle and smaller core option
- github.com/mixpanel/mixpanel-js/releases/tag/v2.86.0: Opt-in visual experiments added in the latest stable SDK
- docs.mixpanel.com/docs/install-with-ai: Agent guidance for SDK setup, events, and identity
- github.com/mixpanel/mixpanel-js/issues/504: User reported freezes with full replay sampling
Holds up over time7.6
Will it still be a good choice in two years?
Claude Opus 5.5: 7.5, likely 6.5 to 8.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.
- github commitsLastYear / releasesLastYear: 234 commits, 15 releases
- github openIssues / openPullRequests: 179 open issues, 34 open PRs
- github.com/mixpanel/mixpanel-js/releases: Monthly releases, none labelled breaking
GPT-6.2 Sol: 7.7, likely 6.5 to 8.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.
- github commitsLastYear, releasesLastYear, latestRelease: 234 commits, 15 releases, latest on November 16
- github.com/mixpanel/mixpanel-js/releases: Recent browser fixes, compatible consent changes, and a recurring release account
- github.com/mixpanel/mixpanel-js/issues: Recent and older unresolved browser SDK reports
- howmakersbuild.com/tools/mixpanel: Lower adoption share among recent launches in its sample
Used widely6.1
How many use it, and is that growing?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- npm downloadsLast4Weeks: 14.9M, up from 4.4M a year ago (3.4x, below the 4.1 median)
- dependents.repos: 1,218 repos, behind Vercel, PostHog and Analytics
- peers PostHog JS downloads: 101M, grew 12x
- bluesky posts: 0 posts; little developer buzz
GPT-6.2 Sol: 5.2, likely 3.9 to 6.5
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.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 3.36× install growth against a 4.1× baseline
- dependents and peers: 1,218 tracked repos versus 2,707 for PostHog and 440 for Amplitude
- bluesky posts: Zero repository links in the 24-month collection window
- howmakersbuild.com/tools/mixpanel: 8% of sampled 2026 launches versus 29% of those launched in 2024 or earlier
- docs.mixpanel.com/docs/tracking-methods/sdks/javascript: CDN installs are available outside npm
Vouched for6.4
Who stands behind it being good?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- heise.de/-11093941: Names customers such as LG, Pinterest, Workday, Yelp
- openai.com/index/mixpanel-incident: OpenAI stopped using Mixpanel
- startupik.com/mixpanel-vs-amplitude-vs-posthog: Third-party comparison places it as the self-serve PM tool
GPT-6.2 Sol: 6.2, likely 4.9 to 7.4
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.
- legal.transporeon.com/DP/PLT/en_US_Platform_Privacy_Policy.pdf: Production use for churn, retention, and feature engagement
- reddit.com/r/analytics/comments/1tvn079/deciding_between_amplitude_mixpanel_posthog: Practitioner feedback on self-serve funnels, cohorts, and retention
- alium.io/research/what-engineers-want-from-product-analytics: Buyer interviews on instrumentation and comparison with peer products
- openai.com/index/mixpanel-incident: Prior production web analytics use ended after the breach
Safe6.4
How safe is it to depend on?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- advisories total: 0 advisories
- scorecard score: 8.2; weak spots are branch protection, fuzzing and CII best practices
- mixpanel.com/blog/sms-security-incident: Mixpanel's own account of the smishing incident
- news.ycombinator.com/item?id=46066522: Users criticise the vague disclosure and the PII exposure risk
GPT-6.2 Sol: 6.3, likely 5.0 to 7.6
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.
- npm license, dependencies and advisories total: Apache-2.0, five direct dependencies, zero recorded OSV advisories
- scorecard score and checks: 8.2 overall, branch protection 5, fuzzing 0, signing unscored
- github.com/mixpanel/mixpanel-js/releases/tag/v2.86.0: GitHub marks the release immutable
- github.com/mixpanel/mixpanel-js/issues/650: Older bundled PostCSS reported in 2.84.0 without a demonstrated reachable flaw
- openai.com/index/mixpanel-incident: Hosted-service breach exposed customer analytics and profile data
- mixpanel.com/blog/sms-security-incident: Mixpanel reported revoking sessions, rotating credentials, and engaging external forensics
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
- npm downloads, 4 weeks
- 15M ×3.4 in a year
- GitHub stars
- 944
- Commits, 12 months
- 234
- npm version
- 2.86.0 Nov 2026
- Versions, 12 months
- 15
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 8.2 out of 10, Nov 2026
- Licence
- Apache-2.0
The SDK of an analytics service that is not open source.
Read on 21 November 2026 from GitHub (mixpanel/mixpanel-js), npm (mixpanel-browser), OSV and the OpenSSF Scorecard.
Product analytics SDKs
- 8.2PostHog JS
- 7.3Amplitude SDK
- 7.3Plausible tracker
- 7.0Mixpanel SDK
- 6.8RudderStack SDK
- 6.5OpenPanel
- 6.5Segment Analytics.js
- 6.2Vercel Analytics
- 4.9Analytics