Mixpanel is a leading user behavior analysis solution for product teams. Two types of integration are available:Documentation Index
Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt
Use this file to discover all available pages before exploring further.
- Kameleoon uses Mixpanel’s native Experiments module, letting you analyze any campaign’s impact via Kameleoon in the Mixpanel native interface for experiments.
- You can also automatically export Mixpanel cohort data into Kameleoon, where it can be used for further segmentation to personalize customers’ journeys.
- Observe how your Kameleoon campaigns impact how users interact with your websites.
- Easily identify and replicate effective A/B tests and personalizations.
- Focus on your segments’ most relevant behavioral characteristics and quickly find new insights to advance your testing roadmap.
- Gain access to cohort data to personalize visitors’ experiences and enhance the performance of personalization campaigns.
Send your Kameleoon campaigns events data to your Mixpanel dashboards
With the Kameleoon/Mixpanel bridge, you can retrieve data from your Kameleoon personalizations and experiments (exposure events) on your Mixpanel platform.Enable Mixpanel integration in Kameleoon
To use Mixpanel, you must activate it in the Integrations page. To do this:- Log in to the Kameleoon app.
- Click Admin > Integrations > Install the tool.
- Select the projects on which you want to configure Mixpanel.
- Click Validate.

If you need to change the behavior of our native bridge, you can create a custom analytics bridge and use the Mixpanel sample code on our Github repository.
Associate Mixpanel as reporting tool in a Kameleoon campaign
You can associate Mixpanel with a campaign in the campaign creation page. Select it from the list of REPORTING TOOLS.
Target visitors on Kameleoon based on their belonging to a Mixpanel cohort
Enable Kameleoon integration on Mixpanel
You must activate the Kameleoon integration in your Mixpanel account to enable cohort synchronization. You can refer to this Mixpanel documentation.You will need a Kameleoon API-key. Ask your Kameleoon Customer Success Manager for the key.
distinct_id for a given user may change over time, we strongly recommend you set an additional user property $kameleoon_mapping_id that contains our Kameleoon Visitor code or “your internal user ID” if you use one of our SDKs. Mixpanel will automatically add the kameleoon_mapping_id in each cohort export they send to Kameleoon.
You can set the kameleoon_mapping_id by using the Mixpanel people.set method, right after the identify method is executed. Here is an example of code you can use with the Mixpanel JavaScript API:
Create a custom data to target Mixpanel cohorts in your experiments
To target Mixpanel cohorts, you must set up custom data within Kameleoon to retrieve the cohort names for each user. Name your custom data “Mixpanel cohorts” and choose the Custom JavaScript code acquisition method if you’re running a classic web experiment, or Kameleoon SDK method if you’re running a server-side experiment or using a feature flag.

External Segment Sync for web experiments
If you use the$kameleoon_mapping_id property as explained in the previous section, use the code below in the custom data acquisition method:
distinct_id method to set your own user ID, use the code below:
External segment sync for server-side
To use Mixpanel cohorts in server-side experiments or feature flags, you can consult the guidelines outlined in each SDK’s documentation. For instance, if you’re using the GO SDK, you can refer to its documentation for detailed instructions. The GO SDK, like our other SDKs, employs thegetRemoteData() method. This method fetches data stored by Mixpanel on our servers and make it accessible within your backend code.
Fetch Mixpanel cohort names in Kameleoon
Activate the Save the values for the targeting condition associated with the custom data point option, and insert this snippet into the dedicated field. Replace the value “ADD_YOUR_PROJECT_ID_HERE” by your project sitecode.
