Mixpanel
Koryla sends experiment assignments to Mixpanel as Experiment Viewed events. You can then use Mixpanel's funnel and cohort tools to measure variant performance.
Setup
- In Mixpanel, go to Project Settings → Access Keys and copy your Project token.
- Enter the token in Dashboard → Integrations → Mixpanel and toggle it on.
What gets sent
{
"event": "Experiment Viewed",
"properties": {
"distinct_id": "[session_id]",
"token": "your-project-token",
"experiment_id": "a1b2c3...",
"experiment_name": "Homepage CTA Test",
"variant_id": "x9y8z7...",
"variant_name": "Blue button",
"time": 1712793600
}
}
The distinct_id is the Koryla session ID — an anonymous identifier persisted in the ky_session cookie.
Analyzing results in Mixpanel
Funnels
- Go to Funnels → create a new funnel
- Step 1:
Experiment Viewedwhereexperiment_name = "Your Test" - Step 2: your goal event (e.g.
Signed Up,Purchase Completed) - Break down by
variant_name
Cohort breakdown
Create cohorts based on variant_name and compare downstream behavior — retention, LTV, feature adoption, etc.
Notes
- Events fire once per visitor per experiment.
- The
distinct_idis anonymous. If your site also identifies users in Mixpanel (e.g. viamixpanel.identify()), the anonymous and identified profiles won't be merged automatically. For full attribution use$distinct_idaliasing or the custom webhook integration with your own user ID.