All Collections
Affise MMP
Tracking
Sending events from a third-party analytics system to MMP
Sending events from a third-party analytics system to MMP
Natalya Yefimenko avatar
Written by Natalya Yefimenko
Updated over a week ago

It's a common case that you use a third-party system to store data about the event (registration, purchase, deposit, etc.) happening within the application. These events are not automatically tracked by the MMP, since it tracks the channel from where the users come. All the events users do are tracked in your system.

To send the events to Affise MMP and to the services the MMP integrated with (Facebook, for example, to optimize ad campaigns), use the guide below.


Events sending logic

The events should be sent with the event ID to Affise MMP to further register it in the system.

Events sending method

๐Ÿ”Ž You need an API key from the API access section to send the request below:

curl --request POST \

--header 'Authorization: Bearer <API-KEY>' \

--header 'Content-Type: application/json' \

--data '{

"affise_device_id": "3d973489-e784-4f5d-8e51-9bee0ac16b00",

"random_user_id": "7ea344d0-643d-4670-8e57-e3b9ecb53a00",

"event": {

"affise_event_id": "780df130-2302-4037-a628-ae087bcb2923",

"affise_event_name": "CustomId03",

"affise_event_timestamp": 1688046085325,

"affise_event_first_for_user": true,

"affise_event_user_data": "any_string",

"affise_event_data": {

"affise_event_custom_id_03": "any_name",

"affise_event_custom_id_{03}_timestamp": 1688046085325

}

}

}'


where:

  • affise_device_id & random_user_id - device identifiers.

  • affise_event_id - uuid new for each event.

  • affise_event_name - see valid values in other documentation, for example AddToCart Purchase.

  • affise_event_timestamp - timestamp send event (millisec or sec).

  • affise_event_first_for_user - default false.

  • affise_event_user_data - any user data as string.

  • affise_event_data - optional and depends on affise_event_name.

minimal works:

curl --request POST \

--header 'Authorization: Bearer <API-KEY>' \

--data '{

"affise_device_id": "3d973489-e784-4f5d-8e51-9bee0ac16b00",

"event": {

"affise_event_name": "CustomId03"

}

}'

curl --request GET \

--header 'Authorization: Bearer <API-KEY>'


Please contact the Affise Customer Support team regarding all raised questions via the e-mail: [email protected].


Did this answer your question?