# Import Mixpanel Audience to Feature Experimentation

{% hint style="warning" %}
**flagship\_user\_id**

For the user matching to be achieved and let FE\&R target your Mixpanel cohorts, the flagship\_user\_id must be pushed back to Mixpanel (it is used as a joint key).

To do that, you need to ensure a $flagship\_user\_id user property is declared on Mixpanel user profiles:

* The flagship\_user\_id is the Visitor ID already sent to FE\&R (more info [here](https://docs.developers.flagship.io/docs/universal-collect-documentation#visitor-id))
* You can declare the flagship\_user\_id as a user property in you Mixpanel tracking code:
* ```
  mixpanel.people.set({
  $flagship_user_id: vid
  });
  ```

  Or you can declare the flagship\_user\_id as a user property with the Mixpanel SDK

  ```
   mixpanel.people.set(properties: ["$flagship_user_id":vid])
  ```

{% endhint %}

The Mixpanel integration allows you to target the cohorts created in Mixpanel with AB Tasty.

{% hint style="info" %}
**Mixpanel Cohorts**

Cohorts are groups of users defined by a chosen set of criteria, like a shared property or sequence of events. For more information on how to use cohorts please refer to the [Mixpanel documentation](https://help.mixpanel.com/hc/en-us/articles/115005708186-Cohorts-Overview-)
{% endhint %}

Once the integration is active on FE\&R you need to activate the integration on Mixpanel.

This article will walk you through the different steps to setup the integration on Mixpanel side and to export your cohorts.

### Enable the integration on Mixpanel

<figure><img src="https://2350286830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yw9IRJ6KbbucQPwZUCZ%2Fuploads%2FmnTp1ydc0FnxSaxu0k53%2FCapture%20d%E2%80%99e%CC%81cran%202025-07-18%20a%CC%80%2015.37.47.png?alt=media&#x26;token=f144b5da-8487-4e7b-9b63-6e669d701f17" alt=""><figcaption></figcaption></figure>

You must be a Mixpanel project Admin to enable the FE\&R integration:

* Go to Integrations under the Data Management tab in the top navigation bar
* In the Integrations list, select FE\&R, and click Connect
* To set up the FE\&R integration you need to enter your account’s API Key. Copy paste the API Key of your FE\&R account. Click “Continue”. ([documentation on API keys](https://docs.abtasty.com/feature-experimentation-and-rollout/sdk-and-environments/managing-environments))

The AB Tasty integration will show a "Connected" tag once the connection is established.

### Export the cohorts from Mixpanel to FE\&R

![Capture\_d\_e\_cran\_2022-05-31\_a\_\_17.57.47.png](https://2350286830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yw9IRJ6KbbucQPwZUCZ%2Fuploads%2F2FmgoJq632IosEfeDcsT%2FCapture%20d%E2%80%99e%CC%81cran%202025-07-18%20a%CC%80%2015.38.22.png?alt=media\&token=f402fce8-17b7-4da4-aa57-1443a9355ca2)

Now that the connection between the tools is established, we have to export the desired cohorts to FE\&R to target them.

* Click Cohorts under Users in the navigation bar.
* Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort.
* Click Export to Flagship. Select either one-time sync or dynamic sync. Click Start Sync.

Mixpanel Documentation on cohort exports is available [here](https://help.mixpanel.com/hc/en-us/articles/115005708186-Cohorts-Overview-).

Congratulations, the integration is now set up and you can target your Mixpanel cohorts with FE\&R!

{% hint style="warning" %}
**Technical specifications**

* Mixpanel sends the cohorts every 15 minutes in case of a recurring exports
* For the user matching to be achieved the flagship\_user\_id must be pushed.
  {% endhint %}

For global information on how to retrieve audiences or use your cohort, please refer to [this page](https://docs.abtasty.com/flagship-deprecated/integrations/retrieving-your-third-party-tools-audiences-in-ab-tasty-feature-experimentation-rollouts).
