Appearance
Mixpanel
Connect Linkrunner with Mixpanel to import attribution data and understand your user acquisition campaigns
Linkrunner integrates with Mixpanel to automatically send attribution data, helping you understand which campaigns are driving user acquisition and engagement.
How it works
Every time a user is attributed by Linkrunner, we automatically send a request to Mixpanel to update the corresponding user's profile with custom properties:
lr_campaign- The campaign identifierlr_ad_network- The ad network source
Example
- User ID
24came from campaign link:https://app.linkrunner.io/?c=AXb1c2 - In Mixpanel, for user profile with ID
24, you'll seelr_campaignset toAXb1c2andlr_ad_networkset to an ad network source
Prerequisites
| Requirement | Description |
|---|---|
| Linkrunner account | A Linkrunner account is required to take advantage of this integration. |
| Mixpanel account | A Mixpanel account with API access. |
| iOS or Android app | This integration supports iOS and Android apps. |
| Linkrunner SDK | You must have the Linkrunner SDK installed in your app. |
Steps to setup
Get Project Token from Mixpanel and Configure in Linkrunner
First, you need to get your project token from your Mixpanel dashboard.
In your Mixpanel dashboard, navigate to Project Settings > Overview > Access Keys
Copy your Project Token
In Linkrunner, navigate to Integrations from the left-hand panel
Under Analytics, click Configure for Mixpanel
Enter your Mixpanel Project Token
Map User Identifiers in SDK
To properly link users between Linkrunner and Mixpanel, you need to pass the correct identifier in the signup function.
Important: If you are using the identify function of the Mixpanel SDK to set a user ID, pass the same user ID in the userData parameter of the Linkrunner signup function. If you are not using identify, pass the distinct_id or device_id instead.
kotlin
import io.linkrunner.sdk.LinkRunner
import io.linkrunner.sdk.models.request.UserDataRequest
val userData = UserDataRequest(
id = "123", // Your user ID (same as Mixpanel identify)
// ...other user fields
mixpanelDistinctId = "MIXPANEL_DISTINCT_ID", // Required if not using identify
)
LinkRunner.getInstance().signup(userData = userData)You can get the mixpanelDistinctId from the Mixpanel SDK in your app.
Sync with Mixpanel (Optional)
Use the Sync feature in the following scenarios:
- First time after adding your Mixpanel Project Token
- If you see discrepancies in attribution data on Mixpanel profiles
To sync, click the Sync with Mixpanel button in the Linkrunner integration settings. You will receive an email when the sync completes.
Viewing Attribution Data
After the integration is complete, you can view the attribution data in Mixpanel:
- Navigate to a user profile in the Mixpanel dashboard
- Look for the user properties section
- You'll see
lr_campaignandlr_ad_networkattributes with the corresponding values
This data can be used to:
- Create cohorts based on acquisition source
- Personalize experiences based on campaign origin
- Analyze user behavior by acquisition channel