Overview
Add query parameters to your Linkrunner subdomain URL to track referrals, campaigns, or custom data. When users click your link and install the app, retrieve these parameters throughgetAttributionData().
Works for both Android & iOS
Quick Example
Create a link with query parameters:getAttributionData() to get the full URL and parse the parameters.
Setup
1. Configure Your Subdomain
- Go to Linkrunner Settings → Domains
- Add your subdomain (e.g.,
get.yourdomain.com) - Complete domain verification
No need to create campaigns in the dashboard. Just add query parameters to your subdomain URL and they’ll be
automatically captured.
2. Create Your Links
Basic referral:Retrieving Data
CallgetAttributionData() early in your app lifecycle, then parse the deeplink field to extract your query parameters.
- Android
- iOS
- React Native
- Flutter
Use
android.net.Uri to parse the URL and getQueryParameter() to extract values.See Android Usage Guide →Common Use Cases
Referral programs:?referrer=user_12345
Influencer tracking: ?influencer=john_doe&platform=youtube
Campaign attribution: ?campaign=summer_sale&source=instagram
Promo codes: ?promo=SAVE20&referrer=email_campaign
Testing
- Create a test link with query parameters
- Uninstall your app completely
- Click the link and install from the store
- Verify parameters in
getAttributionData()