Skip to content

AppsFlyer Tracking

1. Setting Up an Install Postback and View Through Attribution

  1. Navigate to AppLovin Configuration and select the Integration tab.

  2. For iOS, Toggle Advanced Privacy (for iOS 14.5+ and later) to OFF.

  3. For iOS apps, Toggle Share SKAN transaction ID to ON.

  4. Input your SDK Key in the sdk_key field in the General Settings section (obtained from the the AppLovin dashboard under Accounts > Keys).

  5. Toggle Enable View-Through attribution to ON.

    Android

    iOS

  6. In the In-app event settings section, enter the applovin_sdk_key. This is the same as the sdk_key in step 4 (obtained from the AppLovin dashboard under Accounts > Keys).

  7. Toggle In-app event postbacks to ON.

  8. Set the In-app events postback window to at least six months.

  9. Select AppsFlyer Event and mapped to partner event

    • App opens → landing
    • Revenue events → checkout (select values and revenue in the including column)
    • All other events → postinstall
  10. Set the for users from field to All media sources, including organic for all events, including Installs and In-app event postbacks.

  11. Click Save Integration.

    In-app event settings

2. Configure Attribution Window Settings

  1. Click on the Integration tab.

  2. Toggle Enable View-Through Attribution to ON.

  3. Click on the Attribution link tab.

  4. Set Click through attribution to seven days.

  5. Set the View-Through Lookback Window window to 24 hours.

  6. Select Save Attribution Link.

3. URL Formats

A. Click URL Format

The tracking URL should be generated automatically in the Click Tracking section of the Tracking Link tab.

B. Impression URL Format

When View-Through attribution is enabled, the AppsFlyer UI generates Impression Tracking URLs in the Impressions Tracking Link section of the Tracking Link tab.

4. Importing Cost Data into AppsFlyer

AppsFlyer can pull AppLovin cost data directly from AppLovin’s reporting API. To set this up:

  1. Make sure all AppsFlyer tracking URLs contain “&af_c_id={CAMPAIGN_ID}”.
  2. Navigate to the Cost tab.
  3. Toggle Get cost data to ON.
  4. Enter your AppLovin Reporting API Key in the API Credentials section. You can find your AppLovin Reporting API Key in the AppLovin dashboard under Accounts > Keys.
  5. Enter the Package Name for both iOS and Android. Note that the package name must be in the com.example.PackageExample format for both iOS and Android.
  6. Select Save Cost.

Android

iOS