Aghanim-AppsFlyer Integration
This guide explains how to integrate Aghanim with AppsFlyer to streamline mobile attribution and analytics. By connecting Aghanim with AppsFlyer, you can track player-generated events from the game hub, ensuring precise tracking of user actions across your entire game environment.
Aghanim currently sends events to Adjust only when a player successfully completes a payment on the game hub.
Requirements
- AppsFlyer account
- Administrative permissions to generate or retrieve API tokens
Step 1: Provide the AppsFlyer API token
Obtain an API token from AppsFlyer to authenticate communication, enabling Aghanim to send events:
- Log in to AppsFlyer.
- In the dashboard, go to Configuration → API Tokens or Server-to-Server (S2S) Tokens.
- If an API token is not already available, generate a new token following the provided instructions.
- Copy the generated token.
- Proceed to Aghanim Dashboard → App Connect → AppsFlyer and install the plugin.
- In the plugin settings, paste the generated token.
For more details, see the AppsFlyer documentation.
Step 2: Add AppsFlyer attributes to player.verify webhook response
To ensure AppsFlyer correctly identifies users and attributes their actions on the game hub, include the AppsFlyer‑specific attributes in the player.verify webhook response:
| Key | Type | Description | Required? |
|---|---|---|---|
attributes.appsflyer_id | string | A unique identifier generated by AppsFlyer when the app launches for the first time. This ID links the user's activity within the app to their AppsFlyer profile. Example: 1234567890123-1234567. | Yes |
attributes.appsflyer_app_id | string | The app identifier as defined in the AppsFlyer dashboard. It links the data to the correct application in AppsFlyer. Example: id123456789. | Yes |
attributes.appsflyer_meta | object | Optional custom parameters that can be included in the event data sent to AppsFlyer, allowing additional contextual information to be tracked. Example: {"foo": "bar"}. | No |
For additional details on the attribute values, refer to the AppsFlyer documentation.
Example webhook response:
{
"player_id": "1x1x-xxxx1",
"name": "Molly",
"attributes": {
"appsflyer_id": "1234567890123-1234567",
"appsflyer_app_id": "id123456789",
"appsflyer_meta": {
"any_custom": "parameters",
"you": "need"
}
}
}
Need help?
Contact our integration team at integration@aghanim.com