Mixpanel Event Streaming
The Kameleoon Mixpanel Event Streaming integration allows you to automatically send events to your Mixpanel account whenever visitors are exposed to one of your Kameleoon experiments. This integration enables enriched analytics in Mixpanel, providing insights into experiment exposure to help you better understand user behavior and engagement.
This integration uses Kameleoon's event dispatcher to send server-side events to your Mixpanel account in batches via the /import
endpoint of the Mixpanel HTTP API.
Key benefits
- Precise behavior insights: The integration sends specific events to third-party tools for visitors exposed to web experiments and feature flags on SDK-based projects, such as apps. This detailed tracking enables a clearer view of how different variations impact user actions. For example, you can observe which variation drives more clicks, conversions, or other desired outcomes, helping you determine the most effective approach.
- Real-time decision-making: The integration provides data in real time, enabling on-the-fly decision-making. Armed with up-to-date insights into ongoing experiments, you can swiftly adjust strategies if a variation isn't performing as expected.
- Effortless setup: Enable third-party integrations directly from the Kameleoon app with no need for custom code or SDK changes.
Considerations
Kameleoon's server dispatches events to Mixpanel with a minimum 30-minute delay.
Prerequisites
To configure this integration, the following is required:
- Kameleoon SDK: The Kameleoon SDK must be installed on your server-side project.
- Project token: A unique alphanumeric identifier used to collect data for a specific Mixpanel project. You can find this in the Access keys section of your project's settings overview page.
Set up
This integration can be activated for Web and Feature experiments.
For Web experiments
- Click Admin > Integrations.
- Click the download icon on the right of Mixpanel's card.
- Select the projects on which you want to configure Mixpanel and click Validate.
- Add Mixpanel in the Integrations tab of the finalization flow.
For Feature experiments
- Edit a feature flag or create a new one.
- Under Reporting, click Integrations.
- Toggle Mixpanel on in all desired environments.
Once the integration is activated and your experiment is live, Kameleoon will begin sending experiment events to Mixpanel whenever a visitor is exposed. These events include key details such as:
- User ID
- Exposure time
- Kameleoon experiment ID
- Kameleoon variant ID
Event payload example
{
"event": "$experiment_started",
"properties":
{
"time": 1730194985000,
"distinct_id": "xf54dd2thdd5",
"$insert_id": "a1b2c3d4-e5f6-7890-1234-56789abcdef0",
"Experiment name": "Experiment 12345",
"Variant name": "Variant 15685"
}
}
By default, distinct_id
will contain the visitor's Kameleoon visitor code. If you have set up Kameleoon cross-device reconciliation, the identifier put into the cross-device reconciliation custom data will be taken instead of the visitor code.
Note that any custom data specific to your organization, typically included in your Mixpanel events, won't be present in the events sent by Kameleoon from the server. If you need to enrich the payload with data not tracked natively by Kameleoon, you can submit a feature request.