On this page

Mixpanel

Connect Mixpanel with Statsig to send Mixpanel events to Statsig for experiment analysis and to keep product analytics consistent across both tools.

How the Mixpanel integration works

The Mixpanel 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

Ingestion with this integration is available only for Statsig Cloud. For Warehouse Native, create a metrics source that references this data in your warehouse.

Statsig can ingest user information through Mixpanel Cohort Syncing
  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.

statsig-segment-config

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

mixpanel-integration-menu

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

mixpanel-custom-webhook

  1. In the dialog that appears, paste the url below, substituting the SERVER_SECRET_KEY with a "Server Secret Key" found in Project Settings, then click Continue.
plaintext
https://api.statsig.com/v1/webhooks/mixpanel?statsig-api-key=SERVER_SECRET_KEY

custom-webhook-dialog

  1. Click "Enable" (or "Confirm" if you are updating the integration).

  2. You can now start 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.
  2. Paste your project token into the Outgoing configuration on the Statsig integration panel.

  3. Select your Data Residency Region based on your Mixpanel project's data residency configuration:

  4. Click "Enable" (or "Confirm" if you are updating the integration).

    mixpanel-outgoing-configuration

  5. Verify Statsig is forwarding your events by visiting the Events tab on Mixpanel.

    mixpanel-event-tab

Filtering events

You can customize which events are sent to Mixpanel using Event Filtering.

Was this helpful?