Leanplum Integration

Leanplum Integration

Export Mixpanel cohorts to Leanplum to create custom audiences that you can apply in your Leanplum campaigns. Manage the Leanplum integration from the Mixpanel integrations page.

This integration is currently in closed beta - please reach out to your account team or the Mixpanel Community to ask about access.

Leanplum also supports an integration to send messaging interactions to Mixpanel - for more details, see Leanplum's Mixpanel integration.

Permissions

You must be a Mixpanel project admin to enable the Leanplum integration. Read more about project roles and permissions here.

Enable the Integration

To enable the integration, select Integrations under the Data Management tab in the top navigation bar:

Screen_Shot_2020-10-07_at_2.07.33_PM.png

From the Integrations page, select the Leanplum dropdown, and select Connect.

Screen_Shot_2020-09-30_at_5.06.05_PM.png

The connection uses a Basic Authorization Username/Password system. You will need to provide two credentials to authorize the connection:

  • Username: Leanplum App ID
  • Password: Leanplum API Secret

You can find these values in your Leanplum settings page, and under the Mixpanel section in "Partner Integrations".

The Leanplum integration will show a "Connected" tag in the UI once the connection succeeds.

Matching Users between Leanplum and Mixpanel

If you use a different system of user identifiers for Mixpanel's distinct_id as compared to Leanplum's user ID, the user's Mixpanel profile must contain a user property, "$leanplum_user_id", whose value is a string representing that person's user ID in Leanplum. Use this joining key if your user identifiers in Mixpanel are different from the identifiers used in Leanplum (for example, if you identify Mixpanel users on internal user ID, but identify Leanplum users on device ID).

In addition, when its ingestion service detects calls setting this user property, Mixpanel will also alias the value of "$leanplum_user_id" to the user's distinct_id when setting that user property. This ensures that messaging data passed from Leanplum to Mixpanel still attributes to the correct user.

If you use the same system of user identifiers in both tools, meaning a user has the same ID string in both products, you do not have to declare "$leanplum_user_id". The users' Mixpanel distinct_id will still be sent in the cohort export, and Leanplum will attempt to match users on this value instead.

Note that exports are used solely for matching user identities between products - the integration will not send the full set of a user's profile properties to Leanplum.

Export a Cohort

You can export a cohort to Leanplum from the Cohorts report. Navigate to Cohorts by clicking 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 > Leanplum. Select either one-time sync or dynamic sync. Click Start Sync.

Screen_Shot_2020-10-05_at_3.46.23_PM.png

Sync Types

This integration supports two types of exports: one-time export and dynamic sync.

One-Time Export

In a one-time export, Mixpanel sends Leanplum a static export of users who currently qualify for the cohort. The cohort data will not be updated in Leanplum after a one-time export.

Dynamic Sync

In dynamic sync, Mixpanel exports the cohort to Leanplum every day. The exported cohort will be updated every day to reflect the most recent list of users in a cohort.

When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export.

Select the Audience in Leanplum

Once the export completes, you will see an Audience reflecting the set of users from your Mixpanel cohort (e.g. "Recent Signups who haven't hit a Value Moment"):

Screen_Shot_2020-10-07_at_1.39.04_PM.png

Leanplum events into Mixpanel

Leanplum offers the ability to forward campaign interaction events to Mixpanel. For more detail, please refer to Leanplum's integration guide.

Did this answer your question?

Comments

0 comments

Please sign in to leave a comment.