mixpanel/mixpanel-js

Description: Official Mixpanel JavaScript Client Library

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 2 hours ago
Added to GitGenius on June 18th, 2026
Created on May 15th, 2014
Open Issues & Pull Requests: 225 (+0)
Number of forks: 331
Total Stargazers: 939 (+0)
Total Subscribers: 97 (+0)

Issue Activity (beta)

Open issues: 67
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 674 days
Stale 30+ days: 65
Stale 90+ days: 54

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Repository Insights (GitGenius)

Median issue/PR response: 8.4 hours
Mean response time: 48.0 days
90th percentile: 144.0 days
Tracked items: 81

Most active contributors

Detailed Description

The Mixpanel JavaScript Library is the official client-side SDK for integrating Mixpanel analytics into web applications. It provides a global mixpanel object with methods designed to send event data and user information to Mixpanel projects, enabling websites to track user behavior, conversions, and engagement metrics in real time.

The library supports multiple installation and usage patterns to accommodate different development workflows. It is available as an NPM package named mixpanel-browser, distinguishing it from Mixpanel's server-side Node.js library. For projects using modern front-end bundlers like Webpack or Vite, developers can install the package via NPM and import it directly. The library also supports browser JavaScript modules through importmap, allowing developers to import mixpanel-browser in their JavaScript modules without requiring a build step. Additionally, the library can be loaded directly in the browser as a global object for traditional script-based integration.

A notable feature of the default bundle is the inclusion of the mixpanel-recorder SDK for session replay functionality. However, the library provides flexible bundling options to reduce bundle size for projects that do not require session recording or targeting features. Developers can load the core SDK alone or opt to load session recording and targeting bundles asynchronously via script tags, giving them granular control over what functionality is included.

The repository includes comprehensive development tooling. The build process is straightforward, requiring npm install followed by npm run build-dist to create release bundles. Testing is supported through unit tests via npm test and integration tests through a local test server accessible at localhost:3001/tests, where developers can manually run various test scenarios. Documentation generation is automated through npm run dox, which produces Markdown output, and can be published to readme.io using the rdme utility with appropriate API credentials.

According to GitGenius activity tracking, the repository shows a median issue and pull request response latency of 7.5 hours across 80 tracked items, indicating active maintenance. The most active contributor tracked is tdumitrescu with 86 events, followed by jakewski with 38 events and levrik with 7 events. Enhancement requests represent the most common issue label. The repository shares contributors with major projects including microsoft/vscode, vuejs/vue, and mui/material-ui, suggesting it benefits from engagement with the broader JavaScript ecosystem.

The library is classified across multiple analytics and tracking domains including event tracking, user behavior analysis, real-time analytics, A/B testing, conversion tracking, and API integration. The full API reference is available through Mixpanel's developer documentation, providing developers with detailed guidance on implementing analytics across their web applications.

mixpanel-js
by
mixpanelmixpanel/mixpanel-js

Repository Details

Fetching additional details & charts...