Mixpanel Feed
When using Leanplum together with Mixpanel, customers can activate the Mixpanel Feed integration, which will stream all Leanplum marketing activity (Email Open, Push Send, A/B test impression, etc.) to your Mixpanel project for deeper analysis.
Configuration
In order to get started with the integration, go to your "Partner Integrations" page and add your Access Token from your Project Settings page in Mixpanel.
Use the same User IDs
Make sure you are using the same User IDs in Leanplum and Mixpanel to ensure data consistency. Click here to read more.
Supported Events
Once the Mixpanel Output has been configured, Leanplum will automatically export marketing activity (events) to Mixpanel. There are two sets of events that are currently not exported from Leanplum to Mixpanel:
- Events older than 5 days
- Events from anonymous users
The following events will be sent to Mixpanel with the respective properties:
Campaign Enter
Fires when a user enters a campaign, even if they get suppressed for the first message and receive no messages.
{
"event": "(Leanplum) Campaign Enter",
"properties": {
"token": "the Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "timestamp of the event",
"name": "Leanplum Campaign Name",
"campaign_id": "Leanplum Campaign ID",
"event_type": "Enter"
},
}
Campaign Convert
Fires when a user converts in a campaign.
{
"event": "(Leanplum) Campaign Convert",
"properties": {
"token": "the Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "timestamp of the event",
"name": "Campaign name",
"campaign_id": "Leanplum Campaign ID",
"event_type": "Convert"
},
}
Campaign Exit
Fires when a user exits a campaign without converting.
{
"event": "(Leanplum) Campaign Exit",
"properties": {
"token": "the Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "timestamp of the event",
"name": "Campaign name",
"campaign_id": "Leanplum Campaign ID",
"event_type": "Exit"
},
}
Campaign Forced Exit
Fires when a user is forcibly removed from a campaign
{
"event": "(Leanplum) Campaign Forced Exit",
"properties": {
"token": "the Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "timestamp of the event",
"name": "Campaign name",
"campaign_id": "Leanplum Campaign ID",
"event_type": "Forced Exit"
},
}
Push Notification Send
{
"event": "(Leanplum) Push Notification Send",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "timestamp of the event",
"name": "message name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"event_type": "Send",
"channel": "Push"
},
}
Push Notification Open
{
"event": "(Leanplum) Push Notification Open",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "timestamp of the event",
"name": "message name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"event_type": "Open",
"channel": "Push"
},
}
Push Notification Bounce
{
"event": "(Leanplum) Push Notification Bounce",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "timestamp of the event",
"name": "message name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"event_type": "Bounce",
"channel": "Push"
},
}
Email Send
{
"event": "(Leanplum) Email Send",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "Timestamp of the event",
"name": "Leanplum Message Name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"event_type": "Send",
"channel": "Email"
},
}
Email Delivered
{
"event": "(Leanplum) Email Delivered",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "Timestamp of the event",
"name": "Leanplum Message Name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"event_type": "Delivered",
"channel": "Email"
},
}
Email Open
{
"event": "(Leanplum) Email Open",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "Timestamp of the event",
"name": "Leanplum Message Name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"event_type": "Open",
"channel": "Email"
},
}
Email Bounce
{
"event": "(Leanplum) Email Bounce",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "Timestamp of the event",
"name": "Leanplum Message Name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"event_type": "Bounce",
"channel": "Email"
},
}
Email Clicked
{
"event": "(Leanplum) Email Clicked",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "Timestamp of the event",
"name": "Leanplum Message Name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"event_type": "Clicked",
"channel": "Email"
},
}
Email Marked as spam
{
"event": "(Leanplum) Email Marked as spam",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "Timestamp of the event",
"name": "Leanplum Message Name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"event_type": "Marked as spam",
"channel": "Email"
},
}
Email Unsubscribed
{
"event": "(Leanplum) Email Unsubscribed",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "Timestamp of the event",
"name": "Leanplum Message Name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"event_type": "Unsubscribed",
"channel": "Email"
},
}
In-app Message View
{
"event": "(Leanplum) In-app Message View",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "Timestamp of the event",
"name": "Leanplum Message Name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"template": "Template of the In-app message",
"event_type": "View",
"channel": "In-app"
},
}
In-app Message Accept
{
"event": "(Leanplum) In-app Message Accept",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "Timestamp of the event",
"name": "Leanplum Message Name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"template": "Template of the In-app message",
"event_type": "Accept",
"channel": "In-app"
},
}
In-app Message Submit
"event": "(Leanplum) In-app Message Submit",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "Timestamp of the event",
"name": "Leanplum Message Name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"template": "Template of the In-app message",
"event_type": "Submit",
"channel": "In-app"
},
}
In-app Message Select
{
"event": "(Leanplum) In-app Message Select",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "Timestamp of the event",
"name": "Leanplum Message Name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"template": "Template of the In-app message",
"event_type": "Select",
"channel": "In-app"
},
}
App Inbox Send
{
"event": "(Leanplum) App Inbox Send",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "Timestamp of the event",
"name": "Leanplum Message Name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"event_type": "Send",
"channel": "App Inbox"
},
}
App Inbox Open
{
"event": "(Leanplum) App Inbox Open",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum"
"time": "Timestamp of the event",
"name": "Leanplum Message Name",
"message_id": "Leanplum Message ID",
"campaign_id": "(optional) Leanplum Campaign ID",
"event_type": "Open",
"channel": "App Inbox"
},
}
A/B Test Impression
{
"event": "(Leanplum) A/B Test Impression",
"properties": {
"token": "The Mixpanel token associated with the app",
"distinct_id": "User ID in Leanplum",
"time": "Timestamp of the event",
"name": "Leanplum Message Name",
"ab_test_id": "Leanplum A/B Test ID",
"variant_id": "A/B Test variant ID"
},
}
Updated over 2 years ago