Before the start
Appsflyer is available for linking only with your own Appsflyer account with Premium Plan.
Appsflyer is a mobile marketing, analytics, and attribution platform.
With one connection of Appsflyer you will be able to see all UA metrics directly in our BI, without using MMP, analyze them in various sections, and also get access to LTV forecasting.
Note that we also support forecast metrics, which will be available by default with the current integration.
Appsflyer integration steps
To connect with Appsflyer, follow the steps below.
Step 1: Check needed features
Make sure you have a following features:
- Datalocker. Data Locker writes your report data to cloud storage for loading into your BI systems.
- Master API. Get selected LTV, activity, Protect360, and retention campaign performance KPIs by API, in CSV or JSON format. Select 1 or more apps.
These features are available on Appsflyer Premium Plan.
Step 2: Import Appsfyer
Complete all the steps from our integration guide. Make sure to integrate Appsflyer distributed via Appodeal SDK.
To complete the integration, you will need the following Appsflyer IDs:
- Appsflyer DevKey - you may find it following this guide.
- Appsflyer App Id - your app bundle id.
Step 3: Contact us
Contact our support team via live chat or via email email@example.com and send us your Datalocker and Master API. We will provide you with further steps.
You can use our demo analytics app as a reference project.
Validate in-app purchases
In-App purchase tracking will work only with connection with Adjust/Appsflyer. To connect them, follow the guide.
It's possible to track in-app purchase information and send info to Appodeal servers for analytics. It allows to group users by the fact of purchasing in-apps. This will help you to adjust the ads for such users or simply turn it off, if needed. To make this setting work correctly, please submit the purchase info via the Appodeal SDK.
To track in-app purchase, Appodeal SDK will need info about purchase provided by the Google Play Billing Library.
Add the following dependency into your module-level build.gradle:
Get your Purchase and SkuDetails objects from the Google Play Billing Library using the guide. Get a price and currency from SkuDetails.
Create and validate in-app purchase.
|purchaseType||Purchase type. Must be InAppPurchase.Type.InApp or InAppPurchase.Type.Subs||Adjust/AppsFlyer|
|publicKey||Public key from Google Developer Console.||AppsFlyer|
|signature||Transaction signature (returned from Google API when the purchase is completed).||Adjust/AppsFlyer|
|purchaseData||Product purchased in JSON format (returned from Google API when the purchase is completed).||AppsFlyer|
|purchaseToken||Product purchased token (returned from Google API when the purchase is completed).||Adjust|
|purchaseTimestamp||Product purchased timestamp (returned from Google API when the purchase is completed).||Adjust|
|developerPayload||Product purchased developer payload (returned from Google API when the purchase is completed).||Adjust|
|orderId||Product purchased unique order id for the transaction (returned from Google API when the purchase is completed).||Adjust|
|sku||Stock keeping unit id.||Adjust|
|price||In-app event revenue.||Adjust/AppsFlyer/Appodeal|
|currency||In-app event currency.||Adjust/AppsFlyer/Appodeal|
|additionalParameters||Additional parameters of the in-app event.|
In-App purchase validation runs by FIFO queue in a single thread.
Appodeal SDK allows you to send events to analytic services such as Firebase, AppsFlyer, Adjust and Meta using a single method:
Event parameters can only be strings and numbers.