AppsFlyer Attribution
Attach AppsFlyer campaign data to your AppLinks and measure the installs they drive, alongside the rest of your AppsFlyer campaigns.
Overview
When you create your AppsOnAir AppLink, you can attach AppsFlyer campaign details to it: the channel or media source, the campaign name and campaign ID, sub-parameters for granular tracking, and the title and description shown on the AppLink landing page. These values live on the link itself and are set at creation time through the optional appsFlyer parameter.
Campaign data attached this way is reported to your AppsFlyer dashboard once a user installs the app from that link.
-
Your published app is added in the AppsFlyer dashboard, and that same app is the one configured in your AppsOnAir AppLink setup.
-
Enable AppsFlyer Integration is selected in your URL Prefix settings. See Enable AppsFlyer Integration. Step 3: App Info configures your iOS app and your Android app separately, and the option sits inside each of those blocks, so selecting it for one platform does not enable it for the other. Until it is selected, AppsFlyer data is not returned by the SDK and does not appear in your AppsFlyer dashboard for that platform.
-
The AppsFlyer SDK is integrated into the build you are testing with, so install and campaign data reaches your AppsFlyer dashboard.
-
You have access to the AppsFlyer dashboard to register test devices.
-
You have an AppLink with attribution enabled and its campaign information filled in.
Configure AppsFlyer Attribution
Enable AppsFlyer Integration
AppsFlyer integration is turned off by default. Enable it in your URL Prefix settings before you create links that carry AppsFlyer data.
Go to URL Prefix Setup → Step 3: App Info, then select Enable AppsFlyer Integration.
Add Attribution Details to an AppLink
Once the integration is enabled, an AppsFlyer step appears in the AppLink creation flow. Fill in the campaign details there, and they are attached to the link so every click on it is attributed correctly.
Go to Create New Link (or open an existing link and choose Edit), continue to the AppsFlyer step, and enter the campaign information.
The web portal is not the only way to attach this data. Links created through the SDK or the REST API can carry the same campaign details through the optional appsFlyer parameter:
-
SDK: Android, iOS, Flutter, or React Native
-
REST API: Create Link
Both appsFlyer and attributionTtl are set when the link is created.
| Field | What it does |
|---|---|
| Campaign Name | Human-readable name of the marketing campaign. Maximum 100 characters. |
| Campaign ID | Unique identifier for the campaign. Maximum 24 characters. |
| Channel | The media source or channel driving traffic to this link. Maximum 20 characters. |
| Sub Parameters | Up to five sub-parameters (af_sub1–af_sub5) for granular tracking, 100 characters each. If you leave them empty, the link's shortId is used as af_sub1. |
| Meta Title and Meta Description | Title and description shown on the Android redirection page, which appears while users without the app are sent to the Play Store to install it. |
All of these fields are optional. A link created without them keeps its existing behavior, but no campaign data is attributed to it.
You can add or change the campaign details later by editing the link in the web portal.
Redirection Page
This is the redirection page as it appears on the user's device. It is shown on Android only, when someone without the app clicks the AppLink and is sent to the Play Store to install it. The Meta Title and Meta Description you configured above appear here, along with your app icon, which is fetched automatically from the Play Store.

Attribution in the AppsFlyer Dashboard
Once the user has clicked the link, installed the app from the store, and launched it, the install is attributed to your campaign and appears in your AppsFlyer dashboard.
The campaign details you attached to the AppLink are what group the results here. Using the Channel performance by Campaign ID, Campaign and Media source report, the install shows up under appsonair as the media source, broken down by the Campaign Name, Campaign ID, and Channel you entered.
Installs that are not credited to any link appear in the Organic row instead. If your install lands there, see Common Issues.
Dashboard data is not always immediate. Give AppsFlyer some time to process the install before the numbers appear.
AppsFlyer Parameters
The same values can be set from the SDK. appsFlyer is an optional parameter of the AppLink creation call, and its keys map to the web portal fields above. Links created without it keep their existing behavior.
| Key | Type | Description |
|---|---|---|
| channel | String | The media source or channel driving traffic to this link. Maximum 20 characters. Example: appsonair |
| campaignId | String | Unique identifier for the marketing campaign. Maximum 24 characters. |
| campaign | String | Human-readable name of the marketing campaign. Maximum 100 characters. |
| subs | String[] | Sub-parameters for granular tracking. Up to 5 values, 100 characters each. If not provided, the link's shortId is used as sub1. Example: ["sub1", "sub2", "sub3", "sub4", "sub5"] |
| metaTitle | String | Title shown on the Android redirection page. |
| metaDescription | String | Description shown on the Android redirection page. |
subs — if you do not pass this parameter when creating the AppLink, the link's shortId is used as the first sub-parameter, sub1.
metaTitle and metaDescription — when an AppLink is clicked, it opens a landing page in the browser. That page shows your app icon, which is fetched automatically from the App Store and Play Store, along with a title and a description. These two parameters set that title and description.
For the full parameter list and code samples, see the setup guide for your platform: Android, iOS, Flutter, or React Native.
Testing AppsFlyer Attribution
iOS reads deferred link data from the clipboard, so you must enable Advanced Deferred AppLink before testing. Both the EnableAdvancedDeferredLink flag in your Info.plist and the matching option in the web portal must be enabled. See Advanced Deferred AppLink.
Register Your Test Device
Registering your device as a test device tells AppsFlyer to bypass its production filters, so your test installs are attributed instead of being filtered out. Register the device before you click the AppLink.
Install My Device ID by AppsFlyer on your test device to read its advertising identifier. The app is available for both Android and iOS.
| Platform | Identifier |
|---|---|
| Android | GAID (Google Advertising ID), or OAID on devices without Google Play Services |
| iOS | IDFA, or IDFV when ATT permission has not been granted |
You can register the device in either of two ways:
-
From the app: tap Register in My Device ID by AppsFlyer to add the device to your AppsFlyer account directly. This requires admin permissions on the account.
-
From the dashboard: copy the identifier shown in the app and add it to the test devices list in your AppsFlyer dashboard.
For the full procedure, see Registering test devices in the AppsFlyer documentation.
Testing on iOS
Your build does not have to be uploaded to the App Store to test attribution.
-
Enable attribution on the AppLink and fill in its campaign information.
-
Register the device's IDFA or IDFV as a test device in the AppsFlyer dashboard.
-
Open the AppLink on the iOS device. It redirects you to the App Store.
-
Do not install from the App Store. Instead, install the build either by running it from Xcode, or by downloading a build you uploaded to OTA Distribution.
-
Confirm the attribution in getAttributionInfo() or onAttributionListener(), and in your AppsFlyer dashboard.
Testing on Android
-
Read the device GAID with My Device ID and register it as a test device in the AppsFlyer dashboard.
-
Make sure the test device has only one Google account signed in. Additional accounts can prevent the install referrer from resolving correctly.
-
Use a personal Google account rather than a company or Google Workspace account. A company-domain account such as
[email protected]may not work reliably, while a personal account such as[email protected]does. -
Open the AppLink on the device. It redirects you to the Play Store.
-
Do not press Install. Instead, run the app directly from Android Studio on the device.
-
Confirm the attribution in getAttributionInfo() or onAttributionListener(), and in your AppsFlyer dashboard.
If your app is not live on the Play Store yet, you can use the application ID of any live app for referral testing.
Common Issues
| Symptom | Likely cause |
|---|---|
| appsFlyer data is missing from the SDK response | Enable AppsFlyer Integration is not selected in URL Prefix Setup → Step 3: App Info. The SDK returns AppsFlyer data only when that option is enabled. See Enable AppsFlyer Integration. |
| Campaign data does not appear in the AppsFlyer dashboard | Enable AppsFlyer Integration is not selected, the device is not registered as a test device in AppsFlyer, or, on Android, the app is not live on the Play Store. The attribution response from the SDK still works without a Play Store listing, but dashboard data does not. |
| Nothing is attributed on Android | More than one Google account is signed in on the device, or the account is a company or Workspace account. Use a single personal account. |
| Nothing is attributed on iOS | Advanced Deferred AppLink is not enabled, or the clipboard prompt was denied. |
| Referral data from an earlier test still appears on iOS after reinstalling | iOS stores referral data in the Keychain, which survives an uninstall. Android stores it in SharedPreferences, which is cleared on uninstall. |
| The install is reported as organic even though you clicked the link | This is controlled by Attribution TTL, not by your AppsFlyer configuration. The install happened after the link's attributionTtl window expired, or the click time and install time could not be determined. |