Mixpanel

Mixpanel

Send event data to Mixpanel

Configuration

OptionDescription
Project Token
Type: string
Required: True

Mixpanel project token.

Secret Key
Type: string
Required: True

Mixpanel project secret.

Data Residency
Type: choice
Required: False

Learn about EU data residency and India data residency

Source Name
Type: string
Required: False

This value, if it's not blank, will be sent as segment_source_name to Mixpanel for every event/page/screen call.

Strict Mode
Type: choice
Required: False

This value, if it's 1 (recommended), Mixpanel will validate the events you are trying to send and return errors per event that failed. Learn more about the Mixpanel Import Events API

Debug Mode
Type: boolean
Required: False

Will log configuration and request details

Using our REST API you can create this destination like so:

Terminal
# Create a new destination
curl --location 'https://us.i.posthog.com/api/environments/:project_id/hog_functions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <POSTHOG_PERSONAL_API_KEY>' \
--data '{
"type": "destination",
"name": "Mixpanel",
"inputs": {
"projectToken": {
"value": ""
},
"apiSecret": {
"value": ""
}
},
"enabled": true,
"template_id": "segment-actions-mixpanel"
}'