How it works
Every time a user is attributed by Linkrunner, we automatically send a request to Amplitude 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 Amplitude, 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. |
| Amplitude account | An Amplitude 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
Create API Key in Amplitude and Configure in Linkrunner
First, you need to get your API key from your Amplitude dashboard.
- In your Amplitude dashboard, navigate to Settings > Projects > API Keys
- Copy your API Key
- In Linkrunner, navigate to Integrations from the left-hand panel
- Under Analytics, click Configure for Amplitude
- Enter your API Key
Map User Identifiers in SDK
To properly link users between Linkrunner and Amplitude, you need to pass the correct identifier in the
signup function.Important: If you are using the
identify function of the Amplitude 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.- Android (Kotlin)
- iOS (Swift)
- React Native
- Flutter
Sync with Amplitude (Optional)
Use the Sync feature in the following scenarios:
- First time after adding your Amplitude API Key
- If you see discrepancies in attribution data on Amplitude profiles
Viewing Attribution Data
After the integration is complete, you can view the attribution data in Amplitude:- Navigate to a user profile in the Amplitude dashboard
- Look for the user properties section
- You’ll see
lr_campaignandlr_ad_networkattributes with the corresponding values
- Create cohorts based on acquisition source
- Personalize experiences based on campaign origin
- Analyze user behavior by acquisition channel







