Track user behavior with a single prompt. Mixpanel is an event-based analytics platform that tracks user interactions, measures feature adoption, and visualizes conversion funnels. When you connect Mixpanel to Rocket, you can describe the events you want to track in chat and Rocket generates the tracking code, dashboard components, and funnel visualizations automatically. Mixpanel pairs well with Supabase (for linking events to authenticated users) and works best for product teams that need granular behavioral data beyond page-view counts.Prerequisites:
- A Rocket account at rocket.new.
- A Mixpanel account with organization admin access.
- For mobile: the Rocket mobile app installed.
What you can use it for
Feature adoption tracking
Feature adoption tracking
Measure which features users engage with and how often, so you can prioritize what to build next.Try this prompt:Rocket creates: event tracking calls, a feature usage chart, and a date-range picker.
Conversion funnel analysis
Conversion funnel analysis
Visualize how users move through multi-step flows like signups, onboarding, or checkout.Try this prompt:Rocket creates: funnel event tracking, a step-by-step funnel chart, and drop-off percentage labels.
A/B testing dashboards
A/B testing dashboards
Compare metrics across experiment variants to see which version performs better.Try this prompt:Rocket creates: variant assignment logic, event tracking per variant, and a comparison chart.
User segmentation
User segmentation
Group users by behavior, plan type, or demographics to understand how different audiences use your app.Try this prompt:Rocket creates: user property tagging, segment-filtered charts, and a comparison table.
Retention tracking
Retention tracking
Measure how many users return to your app over time and which actions drive long-term engagement.Try this prompt:Rocket creates: retention event triggers, cohort grouping logic, and a retention heatmap.
Get your service account credentials
Open Mixpanel’s documentation to learn how to create a service account.
- Go to mixpanel.com > Settings > Organization Settings.
- Click on the Service Accounts tab.
- Click Add Service Account, give it a name, assign a role, then save.
- Copy the username and secret. You will paste them into Rocket in the next step.
US or EU) based on where your Mixpanel project data is hosted.
Detailed setup
- Web Browser
- Mobile App
Connect Mixpanel to Rocket
There are two ways to connect Mixpanel to Rocket:Method 1: Use Rocket Chat (fastest)-
In any project, open the chat panel and type something like:
Connect my Mixpanel account to: -
Track user signups and button clicks. -
Show a dashboard of feature usage metrics. - You will see a popup appear where you can paste and save your credentials instantly.
- Open any project and go to Integrations.
- Click the Mixpanel card.
When you connect Mixpanel from Project Settings, Rocket will not automatically create tracking flows.
After saving your credentials, describe the analytics you want in chat for Rocket to implement it.
Save your credentials
In Rocket’s Mixpanel integration screen, you will see three fields:- Service Account Username: paste the username from your created service account.
- Service Account Secret: paste the secret from your created service account.
- Data Region: select your data region (
USorEU) based on where your Mixpanel project data is hosted.
Update or disconnect
- Click the Mixpanel integration again.
- Replace the existing credentials or click Disconnect to remove it.
Prompt cookbook
Copy-paste these prompts after connecting Mixpanel to build common analytics features:| Use case | Prompt |
|---|---|
| Button tracking | Track clicks on the "Sign Up" and "Subscribe" buttons and send events to Mixpanel. |
| Page views | Track page views for every route in my app and send them to Mixpanel with the page name. |
| Signup funnel | Track a signup funnel: Visit > Click Sign Up > Complete Form > Verify Email. Show drop-off rates. |
| Feature usage | Track usage of the search, filter, and export features. Show a daily usage chart for the last 30 days. |
| User properties | Set Mixpanel user properties for plan type, signup date, and company name on login. |
| Retention chart | Show a weekly retention chart for users who completed onboarding in the last 8 weeks. |
| A/B test | Track an A/B test on the pricing page. Compare conversion rates for monthly vs. annual pricing. |
| Revenue tracking | Send a "Purchase Completed" event to Mixpanel with the order total and product name. |
| Error tracking | Track JavaScript errors as Mixpanel events with the error message and stack trace. |
| Session duration | Track session start and end times. Show average session duration per day on a line chart. |
Tips and limitations
- Service account credentials are stored securely. Rocket encrypts them at rest and never exposes them in client-side code.
- Data region matters. Choose US or EU to match where your Mixpanel project data is hosted. Using the wrong region will cause events to fail silently.
- Events appear with a short delay. Mixpanel typically processes events within a few seconds, but dashboard aggregations may take a few minutes to update.
- Some analytics depend on your Mixpanel plan. Advanced features like signal reports and data pipelines may require a paid Mixpanel plan.
- One Mixpanel account per project. Each Rocket project connects to one set of Mixpanel credentials. Use different projects for different Mixpanel accounts.

