
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@mixpanel/mixpanel-wizard
Advanced tools
🚧 This package is in **beta** — features may change and bugs may be present. Feedback is welcome [ai-wizard@mixpanel.com](mailto:ai-wizard@mixpanel.com)!
🚧 This package is in beta — features may change and bugs may be present. Feedback is welcome ai-wizard@mixpanel.com!
An interactive CLI tool that generates customized Mixpanel SDK installation instructions for AI-powered development environments. The wizard helps developers quickly integrate Mixpanel analytics into their applications across multiple platforms and programming languages.
JavaScript, iOS (Swift/Objective-C), Android, React Native, Flutter, Unity, Python, Ruby, PHP, Go, Java, Node.js
This guide will help you add Mixpanel analytics to your app or website using AI assistance, even if you're not a developer. The Mixpanel Installation Wizard creates step-by-step instructions that you can give to AI coding tools like Claude, ChatGPT, or Cursor.
Before starting, make sure you have:
Log into your Mixpanel account
Go to your project settings (gear icon in the bottom left)
Click on "Overview" in the left sidebar
Scroll down to Access Keys section and copy your "Project Token" - it looks like a long string of letters and numbers
(You will need to be an Admin or Owner in your project)
Keep this handy - you'll need it in the next step
npx @mixpanel/mixpanel-wizard in your terminalYou'll need to pick three things:
A. Choose Your SDK Type
This depends on what type of app or website you're building:
javascript - For websites or web appsreact-native - For mobile apps built with React Nativeios-swift - For iPhone/iPad apps (Swift)ios-objective-c - For iPhone/iPad apps (Objective-C)android - For Android mobile appspython - For Python applicationsnodejs - For Node.js backend applicationsflutter - For Flutter mobile appsunity - For Unity gamesgo - For Go applicationsruby - For Ruby applicationsphp - For PHP applicationsjava - For Java applicationsDon't see your platform? Check with a developer or choose the closest match.
B. Choose Your Event Type
This determines what kinds of user actions you'll track:
ai - Best for AI-powered features (chatbots, AI tools, ML features)ecommerce - Best for online stores and shopping appsdefault - Good general-purpose events for most other appsC. Decide on Extra Features
Recommendation: Enable both if they're available for your platform
Let's set up Mixpanel.
1. Set up mixpanel by following the steps in MIXPANEL_INSTALLATION_INSTRUCTIONS.txt. Make sure to follow the global rules specified in the MIXPANEL_INSTALLATION_INSTRUCTIONS.txt.
2. After completing the steps in the installation guide, delete the MIXPANEL_INSTALLATION_INSTRUCTIONS.txt
The AI will:
After the AI completes the setup, test that everything is working:
Depending on your event type, you should see:
For AI events:
For E-commerce events:
For Default events:
Once you see events flowing into your Mixpanel dashboard, you're all set! You can now:
The AI has set up all the technical details for you - now you can focus on understanding your users and growing your product.
Skip the interactive prompts by providing options directly:
# Basic usage
mixpanel-wizard --token YOUR_TOKEN --sdk javascript --events ai
# With additional options
mixpanel-wizard --token YOUR_TOKEN --sdk javascript --autocapture --sessionreplay --events ecommerce
# With approval for each code change
mixpanel-wizard --token YOUR_TOKEN --sdk javascript --confirm-each --events ai
# iOS with specific package manager
mixpanel-wizard --token YOUR_TOKEN --sdk ios-swift --events default
| Option | Description | Values |
|---|---|---|
-t, --token | Your Mixpanel project token | String |
--sdk | SDK type to install | javascript, flutter, ios-objective-c, ios-swift, android, react-native, go, python, ruby, php, nodejs,java, unity |
--events | Additional event type options | ai, ecommerce, default |
--autocapture | Enable autocapture (JavaScript only) | Boolean flag |
--sessionreplay | Enable session replay (Javascript, iOS Swift and Android Only) | Boolean flag |
--confirm-each | Require approval for each code change made by AI | Boolean flag |
The wizard generates a MIXPANEL_INSTALLATION_INSTRUCTIONS.txt file containing:
Simply provide the prompt from MIXPANEL_INSTALLATION_INSTRUCTIONS.txt to your AI coding agent.
You are a code-mod assistant tasked with adding Mixpanel analytics...
Global Rules
1. Ask before doing: When in doubt, ask for confirmation.
2. One small change at a time: Propose changes in small, reviewable steps.
...
Step 1: Install the Mixpanel SDK for javascript.
To install the Javascript SDK, paste the following code snippet...
Step 2: Identify your users to Mixpanel...
mixpanel.identify('USER_ID')
mixpanel.people.set({ '$name': 'Jane Doe'...
Step 3: Track events using the Mixpanel SDK...
Events and associated properties:
{
eventName: "Launch AI",
description: "Tracks when a user launches an AI-powered feature...",
properties: []
}
...
This project is licensed under the Apache License - see the LICENSE.md file for details.
⚠️ Important: This tool generates AI-optimized installation instructions. Always review and test the generated code before deploying to production. Human oversight is strongly recommended for all integrations.
FAQs
🚧 This package is in **beta** — features may change and bugs may be present. Feedback is welcome [ai-wizard@mixpanel.com](mailto:ai-wizard@mixpanel.com)!
We found that @mixpanel/mixpanel-wizard demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.