Knowing your conversion rate matters, but Mixpanel tells you *where* users drop off. You might have 40% converting on mobile but only 15% on desktop. That's the difference between measuring and understanding. Here's how to set it up.
Track Your Conversion Events
Your conversion rate is the ratio of users completing an action to those starting it. In Mixpanel, you track both events and let the platform calculate the rate.
Track the first step in your flow
Start by tracking the entry point. If you're measuring checkout conversion, track when users land on Checkout. Use mixpanel.track() with relevant properties like product ID or cart value. These properties let you segment later.
mixpanel.track('Checkout Started', {
'Product ID': productId,
'Cart Value': cartValue,
'User Segment': 'Premium'
});Track the conversion action
Next, track completion. When the user finishes the action—purchase, signup, upgrade—track it. Include the same context so you can connect the dots in your funnel later.
mixpanel.track('Purchase Completed', {
'Order Value': orderValue,
'Product ID': productId,
'Payment Method': paymentMethod,
'User Segment': 'Premium'
});Build a Funnel to Measure Conversion
Once events are tracked, create a funnel in Mixpanel to see exactly where users drop off and calculate your conversion rate.
Create a funnel in the Mixpanel UI
Go to Insights > Funnels in Mixpanel. Click Create Funnel, then add your events in order: 'Checkout Started' → 'Purchase Completed'. Mixpanel automatically calculates the conversion rate between each step.
Add segments to isolate conversion patterns
In the funnel view, click Segments to break down conversion by device, location, or custom property. You might discover mobile converts at 20% but desktop at 45%—actionable insight you'd miss from a single number.
Pull funnel data via API for automation
If you need to log conversion rates automatically or feed them into a dashboard, use Mixpanel's Funnels API. Authenticate with your project token and specify the events, time range, and any filters.
const response = await fetch(
'https://mixpanel.com/api/2.0/funnels?' +
'event=["Checkout Started","Purchase Completed"]' +
'&unit=day' +
'&interval=30' +
'&from_date=2026-02-26' +
'&to_date=2026-03-26',
{
headers: {
'Authorization': `Basic ${btoa(projectToken + ':')}`
}
}
);
const funnelData = await response.json();Track Conversion Rate by User Property
Sometimes you need to measure conversion as a property of the user (e.g., 'Did this user ever convert?'). This is useful for retention, cohort analysis, and long-term tracking.
Set user properties at conversion
Use mixpanel.people.set() to record properties on the user profile. When someone converts, flag them as a converter and record the conversion value. This persists across sessions.
mixpanel.identify(userId);
mixpanel.people.set({
'Has Converted': true,
'First Conversion Date': new Date().toISOString(),
'Lifetime Value': orderValue,
'Conversion Source': 'Organic Search'
});Calculate cohort-level conversion rate
In Insights > Cohorts, create a cohort of users where 'Has Converted' is true. Compare that cohort's retention or engagement against non-converters. This reveals if converters are stickier.
Common Pitfalls
- Forgetting to call
mixpanel.identify()before tracking—conversion rate will look artificially low because Mixpanel can't tie events to the same user. - Including different properties in each event—'Cart Value' in the start event but not the completion event makes segmentation messy.
- Looking at funnel conversion without considering time—a user might start checkout today and finish tomorrow. Use the funnel's time window settings.
- Mixing up event-based conversion rate with property-based—funnel conversion ≠ percentage of users who ever converted.
Wrapping Up
You're now tracking where users succeed and fail in your flow. The funnel view shows you the gaps; segments show you which audiences leak. Next step: act on what you see—if mobile converts at half the rate of desktop, dig into why. If you want to track this automatically across tools and get insights delivered, Product Analyst can help.