Instructions for AppsFlyer's Unity Sample App project:
Open the Sample App Project using Unity.
Inside "Sample" folder, open "StartUp.cs".
In "StartUp.cs", enter your AppsFlyer Dev Key inside the "init"/"setAppsFlyerKey" function, and your Package Name / AppID inside "setAppID" function" -
void Start () {
#if UNITY_IOS
AppsFlyer.setAppsFlyerKey ("YOUR_DEV_KEY");
AppsFlyer.setAppID ("YOUR_APP_ID");
...
#elif UNITY_ANDROID
AppsFlyer.init ("YOUR_DEV_KEY");
AppsFlyer.setAppID ("YOUR_PACKAGE_NAME");
...
Go to your AppsFlyer dashboard and add the app using the Package Name / App ID you configured in the code.
Create a custom tracking link from your AppsFlyer dashboard - More Information
Click the link on your device (Make sure to add &advertising_id="Your_Device_Google_Advertising_Id" for Android or &IDFA="Your_Device_IDFA" for iOS at the end of your tracking link). More Information
Install the App on your device. You should be seeing the Attribution result on the screen.
If you received the "Install Type: Non Organic" message on the app, you can go to your AppsFlyer dashboard and see the non-organic install there.
For a Non-Organic install - click the "Track Event" to track a custom purchase event. You can then see the revenue and event on your AppsFlyer dashboard.