> ## Documentation Index
> Fetch the complete documentation index at: https://statsig-4b2ff144-mintlify-add-local-eval-country-note-96362.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Mixpanel

## Overview

The [Mixpanel](https://mixpanel.com/) integration has two functions.

* Incoming: Statsig can sync your Mixpanel user cohorts with a Statsig ID list segment.
* Outgoing: Statsig can forward Statsig events to Mixpanel.

## Cohort Syncing

Statsig can ingest user information via a [Mixpanel Cohort Syncing](https://developer.mixpanel.com/docs/cohort-webhooks)

1. On Statsig, navigate to Segments on the left navigation menu and create a segment.

* **Name**: Must match the name of your Mixpanel cohort.
* **Type of segment**: Should be ID List.

<Frame>
  <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-add-local-eval-country-note-96362/jdEaqc2Kt0WpKjz_/images/integrations/data-connectors/mixpanel/195177166-07b0f568-836c-4ae8-ba93-e4f1da64bd39.png?fit=max&auto=format&n=jdEaqc2Kt0WpKjz_&q=85&s=fc7b052204f32570f094eeafaddd14f8" alt="statsig-segment-config" width="1716" height="724" data-path="images/integrations/data-connectors/mixpanel/195177166-07b0f568-836c-4ae8-ba93-e4f1da64bd39.png" />
</Frame>

2. On Mixpanel, click on the Data Management navbar item and choose Integrations from
   the dropdown.

<Frame>
  <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-add-local-eval-country-note-96362/jdEaqc2Kt0WpKjz_/images/integrations/data-connectors/mixpanel/195173611-170f02df-543f-4198-8589-7db313f4dd9f.png?fit=max&auto=format&n=jdEaqc2Kt0WpKjz_&q=85&s=2256d9bb35153101bcd3ad55f69c2e21" alt="mixpanel-integration-menu" width="521" height="601" data-path="images/integrations/data-connectors/mixpanel/195173611-170f02df-543f-4198-8589-7db313f4dd9f.png" />
</Frame>

3. In the list of integrations, scroll until you find Custom Webhook and then
   select it.

<Frame>
  <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-add-local-eval-country-note-96362/jdEaqc2Kt0WpKjz_/images/integrations/data-connectors/mixpanel/195173845-73ac1d5b-94b4-4daf-bf36-102eabd5d1fe.png?fit=max&auto=format&n=jdEaqc2Kt0WpKjz_&q=85&s=c2922a26381ed2f62a1c39c1c5505fc4" alt="mixpanel-custom-webhook" width="1132" height="269" data-path="images/integrations/data-connectors/mixpanel/195173845-73ac1d5b-94b4-4daf-bf36-102eabd5d1fe.png" />
</Frame>

4. In the dialog that appears, paste the url below, substituting the
   SERVER\_SECRET\_KEY with a "Server Secret Key" found in [Project Settings](https://console.statsig.com/api_keys), then click Continue.

```
https://api.statsig.com/v1/webhooks/mixpanel?statsig-api-key=SERVER_SECRET_KEY
```

<Frame>
  <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-add-local-eval-country-note-96362/jdEaqc2Kt0WpKjz_/images/integrations/data-connectors/mixpanel/195174446-d3e8078c-ebaf-4ed4-bb5b-f8195694bade.png?fit=max&auto=format&n=jdEaqc2Kt0WpKjz_&q=85&s=b300dec698fef8f53169afcd7ebdd513" alt="custom-webhook-dialog" width="582" height="535" data-path="images/integrations/data-connectors/mixpanel/195174446-d3e8078c-ebaf-4ed4-bb5b-f8195694bade.png" />
</Frame>

5. You can now kick off a cohort sync job on Mixpanel from the Cohorts page.

## Configuring Outbound Events

To export your Statsig events to Mixpanel:

1. Get a copy of your "Project Token" from Mixpanel by following this [guide](https://help.mixpanel.com/hc/en-us/articles/115004502806-Find-Project-Token-).

2. Paste your project token into the Outgoing configuration on the Statsig integration panel and hit "Enable" (or "Confirm" if you are updating the integration).

   <Frame>
     <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-add-local-eval-country-note-96362/jdEaqc2Kt0WpKjz_/images/integrations/data-connectors/mixpanel/195172632-e14fe03f-377f-435f-92ca-60fe20da4746.png?fit=max&auto=format&n=jdEaqc2Kt0WpKjz_&q=85&s=82b8a29cfb6d64b3667c1021906634f0" alt="mixpanel-outgoing-configuration" width="1056" height="863" data-path="images/integrations/data-connectors/mixpanel/195172632-e14fe03f-377f-435f-92ca-60fe20da4746.png" />
   </Frame>

3. Verify your events are being forward by visiting the Events tab on Mixpanel

   <Frame>
     <img src="https://mintcdn.com/statsig-4b2ff144-mintlify-add-local-eval-country-note-96362/jdEaqc2Kt0WpKjz_/images/integrations/data-connectors/mixpanel/195172678-8ff14bfe-6400-4660-b1dd-fef1780ddcd5.png?fit=max&auto=format&n=jdEaqc2Kt0WpKjz_&q=85&s=35135703cf0f64930f18a95f48ec3d4e" alt="mixpanel-event-tab" width="1122" height="518" data-path="images/integrations/data-connectors/mixpanel/195172678-8ff14bfe-6400-4660-b1dd-fef1780ddcd5.png" />
   </Frame>

### Filtering Events

You can customize which events should be sent to Mixpanel using [Event Filtering](/integrations/event_filtering#outgoing-event-filtering)
