Skip to main content

Aghanim-devtodev Integration

This guide explains how to integrate Aghanim with devtodev to streamline player analytics and tracking. By connecting Aghanim with devtodev, you can track player-generated events from the Game Hub, ensuring precise tracking of user actions across your entire game environment.

Step 1: Configure the Integration in Aghanim

  1. Go to the Aghanim Dashboard → Aghanim ConnectDevtodev.
  2. Click the Install button to enable the integration.

Step 2: Add devtodev attributes to player.verify webhook response

To ensure devtodev correctly identifies users and attributes their actions on the Game Hub, include the devtodev-specific attributes in the player.verify webhook response:

KeyTypeDescriptionRequired?
attributes.devtodev_apikeystringThe API key of the project in devtodev. The API key can be obtained by going to 'Settings → SDK → Integration' in the application menu.Yes
attributes.devtodev_device_idDevtodevDeviceIdThe device ID object.Yes

The DevtodevDeviceId schema

The device ID object must contain at least one of the following identifiers:

KeyTypeDescription
devtodevIdnumberThe devtodev ID is the primary numeric identifier for the device/user account in the devtodev database. The devtodevId can be obtained from the devtodev SDK.
userIdstringA custom user ID assigned by the developer. Usually a user ID on the developer's server. The ID must be specified during devtodev SDK initialization, or specified using the SetUserID method.
advertisingIdstringThe Advertising ID or IDFA of the user device.

Example webhook response

{
"player_id": "2D2R-OP3C",
"name": "Beebee-Ate",
"level": 42,
"attributes": {
"devtodev_apikey": "ak-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"devtodev_device_id": {
"devtodevId": 123456,
"userId": "2D2R-OP3C",
"advertisingId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
}
}

Once the integration is set up, Aghanim will automatically send Real Payments events to devtodev, allowing you to track user purchases from the game hub.

Need help?
Contact our integration team at integration@aghanim.com