Integration
Setup
Follow these steps to integrate the AppsFlyer Unreal Engine plugin into your app:
- Open Settings > Project Settings... and locate AppsFlyer under the Plugins section.

- Setup the plugin:
- AppsFlyer Dev Key - Obtain the Devkey from the AppsFlyer Dashboard in the App Settings section.
- Apple App ID - Obtain the app ID from the iTunes store (without the
id
prefix) - Is debug - Once enabled, the AppsFlyer SDK will print detailed information to the log. Please make sure this is turned off before publishing the app to production.
- Currency Code (only iOS) - Set the app currency.
- Disable SKAdNetwork (Only iOS) - Disable SKAdNetwork activity in the SDK.
- Automatically start the AppsFlyer SDK - When set to
true
, the SDK start() API is triggered immediately after init and the session is reported automatically (before Blueprint events). When set tofalse
, it's the developer's responsibility to call the start API from the Blueprint. See here for more details. - Instruct the SDK to collect the TCF data from the device - When set to
true
, the SDK will attempt to fetch the TCF string from the device. This should typically be set if the app is integrating a CMP and would like the SDK to collect the user’s consent information from the CMP automatically.

Automatically Starting the SDK
The Automatically start the AppsFlyer SDK setting determines whether the AppsFlyer SDK should automatically start sending data when the application launches.
- If AutoStart is enabled (true):
- The SDK’s start method is invoked as soon as the app starts
- On iOS, it also starts AppsFlyer tracking whenever the app returns to the foreground
- If isAutoStart is disabled (false):
- The SDK does not start automatically
- You must manually call the SDK’s start method at the appropriate time in the app logic. The SDK will not send a session on every background-foreground transition.
When should this be toggled off?
- When the app needs to perform some actions before starting the AppsFlyer the SDK, the feature should be toggled off.
- Examples:
- Displaying the App Tracking Transparency prompt to the user on iOS and instructing the SDK to wait with sending the install request using the
waitForATTUserAuthorizationWithTimeoutInterval
API. - Collecting consent from the user and setting it into the SDK using
SetConsentData
. - Collecting the Customer User ID and sending it with the install request using the
setCustomerUserId
API.
- Displaying the App Tracking Transparency prompt to the user on iOS and instructing the SDK to wait with sending the install request using the
Updated 16 days ago