Skip to main content
Describe the analytics you want in chat and Rocket generates the complete tracking logic - event calls, funnel visualizations, retention charts, and user segmentation.
This connector is only available for Next.js TypeScript web build tasks.

What you can do

Feature adoption tracking

Measure which features users engage with and how often, so you can prioritize what to build next.

Conversion funnel analysis

Visualize how users move through multi-step flows like signups, onboarding, or checkout.

A/B testing dashboards

Compare metrics across experiment variants to see which version performs better.

User segmentation

Group users by behavior, plan type, or demographics to understand how different audiences use your app.

Retention tracking

Measure how many users return to your app over time and which actions drive long-term engagement.

Before you connect

You need three values from Mixpanel Settings:
  • Account username - your Mixpanel service account username
  • Account secret - your Mixpanel service account secret
  • Region - US or EU, depending on where your Mixpanel project data is hosted
1

Open Organization Settings

In Mixpanel, go to Settings > Organization Settings > Service Accounts.
2

Create a service account

Click Add Service Account, give it a name and role, then save. Copy the username and secret - you will paste them into Rocket during setup.

Mixpanel service account documentation
Never paste your service account credentials directly into chat. Always use the secure connection popup.
Mixpanel is a task-level connector. Each Rocket task connects to its own Mixpanel credentials independently.

Connect Mixpanel

You can connect from two places - both open the same popup.Option 1: From chatType a prompt that mentions Mixpanel - for example, Connect Mixpanel and track when users click the Sign Up button. Rocket detects the intent and shows a Connect button inline. Click it and the popup opens.Option 2: From the Connectors tabClick the ... button in the preview toolbar, then select Connectors.
Toolbar dropdown with Connectors option highlighted.Toolbar dropdown with Connectors option highlighted.
Click the Mixpanel card, then click Connect.
Connectors panel showing the Mixpanel card with a Connect button.Connectors panel showing the Mixpanel card with a Connect button.
After clicking ConnectA popup opens. Enter your Account username, Account secret, and Region, then click Connect.
Connect Mixpanel popup with Account username, Account secret, and Region fields.Connect Mixpanel popup with Account username, Account secret, and Region fields.
A green dot appears next to Mixpanel when the connection is active.Update or disconnectOpen Connectors and click the Mixpanel card. Click Edit to update your credentials or Disconnect to remove the integration from this task.
Mixpanel card showing Edit and Disconnect buttons.Mixpanel card showing Edit and Disconnect buttons.

Example prompts

What you wantPrompt to use
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

  • Data region matters. Choose US or EU to match where your Mixpanel project data is hosted. Using the wrong region causes 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 features depend on your Mixpanel plan. Advanced features like signal reports and data pipelines may require a paid plan.
  • One Mixpanel account per task. Each Rocket task connects to one set of Mixpanel credentials. Use different tasks for different Mixpanel accounts.
  • Credentials are stored securely. Rocket encrypts them at rest and never exposes them in client-side code.

What’s next?

Supabase

Link Mixpanel events to authenticated users with Supabase user management.

Stripe

Track payment events and revenue alongside user behavior in Mixpanel.

Twilio

Combine SMS notifications with analytics for a complete user communication picture.

All connectors

Browse every available integration.