Skip to main content
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

Measure which features users engage with and how often, so you can prioritize what to build next.Try this prompt:
Track when users click the "Export" button and the "Share" button.
Show a dashboard with daily usage counts for each feature over the last 30 days.
Rocket creates: event tracking calls, a feature usage chart, and a date-range picker.
Visualize how users move through multi-step flows like signups, onboarding, or checkout.Try this prompt:
Track a signup funnel with steps: Visit Landing Page, Click Sign Up,
Complete Form, Verify Email. Show drop-off rates between each step.
Rocket creates: funnel event tracking, a step-by-step funnel chart, and drop-off percentage labels.
Compare metrics across experiment variants to see which version performs better.Try this prompt:
Track an A/B test for the pricing page. Variant A shows monthly pricing,
Variant B shows annual pricing. Compare click-through rates on the "Subscribe" button.
Rocket creates: variant assignment logic, event tracking per variant, and a comparison chart.
Group users by behavior, plan type, or demographics to understand how different audiences use your app.Try this prompt:
Segment users into Free and Pro tiers. Show a dashboard comparing
average session duration and feature usage between the two groups.
Rocket creates: user property tagging, segment-filtered charts, and a comparison table.
Measure how many users return to your app over time and which actions drive long-term engagement.Try this prompt:
Track weekly retention for users who complete onboarding.
Show a cohort retention chart for the last 8 weeks.
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.
To get your credentials:
  1. Go to mixpanel.com > Settings > Organization Settings.
  2. Click on the Service Accounts tab.
  3. Click Add Service Account, give it a name, assign a role, then save.
  4. Copy the username and secret. You will paste them into Rocket in the next step.
You will also need to know your data region (US or EU) based on where your Mixpanel project data is hosted.
Never paste your Mixpanel service account credentials directly into Rocket chat. Always use the secure integration flow or the credential inputs in settings. If you believe your credentials have been exposed, delete the service account in Mixpanel and create a new one.

Detailed setup

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.
Method 2: From your project settings
  • 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 (US or EU) based on where your Mixpanel project data is hosted.
Click Save to complete setup.A green dot next to Mixpanel in your integrations list confirms the connection.

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 casePrompt
Button trackingTrack clicks on the "Sign Up" and "Subscribe" buttons and send events to Mixpanel.
Page viewsTrack page views for every route in my app and send them to Mixpanel with the page name.
Signup funnelTrack a signup funnel: Visit > Click Sign Up > Complete Form > Verify Email. Show drop-off rates.
Feature usageTrack usage of the search, filter, and export features. Show a daily usage chart for the last 30 days.
User propertiesSet Mixpanel user properties for plan type, signup date, and company name on login.
Retention chartShow a weekly retention chart for users who completed onboarding in the last 8 weeks.
A/B testTrack an A/B test on the pricing page. Compare conversion rates for monthly vs. annual pricing.
Revenue trackingSend a "Purchase Completed" event to Mixpanel with the order total and product name.
Error trackingTrack JavaScript errors as Mixpanel events with the error message and stack trace.
Session durationTrack 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.

What’s next?