> For the complete documentation index, see [llms.txt](https://doc.commandersact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.commandersact.com/fr/fonctionnalites/destinations/destinations-catalog/appsflyer/appsflyer-mobile-events-api.md). Agents can also search and read this documentation through its [MCP server](https://doc.commandersact.com/~gitbook/mcp).

# AppsFlyer Mobile Events API

[Appsflyer](https://www.appsflyer.com/) est utilisée par les entreprises pour comprendre comment les utilisateurs trouvent leurs applications et interagissent avec elles.\
Cette destination vous permet de tirer parti de [AppsFlyer Server-to-Server Events API](https://dev.appsflyer.com/hc/reference/s2s-events-api3-overview) pour envoyer des événements mobiles à AppsFlyer pour vos applications Android ou iOS.

## Fonctionnalités clés

La destination AppsFlyer Mobile Events API offre les principales fonctionnalités suivantes :

* **Structure des événements** : notre [référence des événements](https://community.commandersact.com/platform-x/developers/tracking/events-reference) prend en charge [la structure d’événements d’AppsFlyer](https://dev.appsflyer.com/hc/reference/s2s-events-api3-post), ce qui signifie que vos données sont correctement associées aux champs attendus de manière optimisée.
* **Mappages prédéfinis**: le mappage des données pour les destinations basées sur les événements s’effectue automatiquement, ce qui simplifie la saisie.
* **Événements et propriétés personnalisés** : vous pouvez envoyer librement des événements et des propriétés personnalisés selon vos besoins spécifiques.
* **Mappage intelligent**: le mappage des données peut être ajusté à l’aide des champs définis dans votre datalayer.

## Configuration de la destination

{% hint style="info" %}
Vérifiez que votre application est enregistrée dans [AppsFlyer](https://hq1.appsflyer.com/auth/login) dans <mark style="color:bleu;">`My Apps`</mark> .
{% endhint %}

### Configuration

<table data-header-hidden="false" data-header-sticky><thead><tr><th>Paramètres</th><th>Description</th></tr></thead><tbody><tr><td><code>Token</code></td><td><em><strong><code>Required</code></strong></em><br>Votre jeton S2S d’autorisation. Vous trouverez sa valeur dans le <a href="https://support.appsflyer.com/hc/en-us/articles/360004562377-Managing-AppsFlyer-tokens#reaching-the-tokens-page">Dashboard d’AppsFlyer</a>.</td></tr><tr><td><code>Application Id</code></td><td><em><strong><code>Required</code></strong></em><br>L’identifiant de votre application (app-id). Vous trouverez sa valeur dans le <a href="https://hq1.appsflyer.com/unified-ltv/dashboard">Dashboard d’AppsFlyer</a> dans <code>Settings</code> → <code>My Apps</code> → passez la souris juste sous le nom de votre application → cliquez sur <code>Copy app id</code> .</td></tr><tr><td><code>AppsFlyer Id</code></td><td><em><strong><code>Required</code></strong></em><br>Un identifiant unique généré par AppsFlyer au premier lancement de l’application. Pour plus de détails, suivez ce <a href="https://support.appsflyer.com/hc/en-us/articles/207034486-Server-to-server-events-API-for-mobile-S2S-mobile#fetching-the-appsflyer-id">LIEN</a>.</td></tr><tr><td><code>Event Mapping</code></td><td>Modifiez le mapping standard entre les événements AppsFlyer et les vôtres, ou ajoutez de nouveaux mappings.</td></tr><tr><td><code>Custom Data Mapping</code></td><td>Associez vos paramètres personnalisés en définissant leurs noms de champ dans <code>AppsFlyer parameter</code> et en ajoutant leur valeur dans <code>Your value</code>.</td></tr></tbody></table>

## Référence rapide

<table data-header-hidden="false" data-header-sticky><thead><tr><th>Événements Commanders Act</th><th>Événements AppsFlyer</th></tr></thead><tbody><tr><td><code>achievement_unlocked</code></td><td><code>af_achievement_unlocked</code></td></tr><tr><td><code>ad_click</code></td><td><code>af_ad_click</code></td></tr><tr><td><code>ad_view</code></td><td><code>af_ad_view</code></td></tr><tr><td><code>add_payment_info</code></td><td><code>af_add_payment_info</code></td></tr><tr><td><code>add_to_cart</code></td><td><code>af_add_to_cart</code></td></tr><tr><td><code>add_to_wishlist</code></td><td><code>af_add_to_wishlist</code></td></tr><tr><td><code>app_opened</code></td><td><code>af_app_opened</code></td></tr><tr><td><code>sign_up</code></td><td><code>af_complete_registration</code></td></tr><tr><td><code>view_item</code></td><td><code>af_content_view</code></td></tr><tr><td><code>begin_checkout</code></td><td><code>af_initiated_checkout</code></td></tr><tr><td><code>invite</code></td><td><code>af_invite</code></td></tr><tr><td><code>generate_lead</code></td><td><code>lead</code></td></tr><tr><td><code>level_achieved</code></td><td><code>af_level_achieved</code></td></tr><tr><td><code>view_item_list</code></td><td><code>af_list_view</code></td></tr><tr><td><code>login</code></td><td><code>af_login</code></td></tr><tr><td><code>notification_open</code></td><td><code>af_opened_from_push_notification</code></td></tr><tr><td><code>in_app_purchase</code><br><code>purchase</code></td><td><code>af_purchase</code></td></tr><tr><td><code>submit_rating</code><br><code>rate</code></td><td><code>af_rate</code></td></tr><tr><td><code>re_engage</code></td><td><code>af_re_engage</code></td></tr><tr><td><p><code>view_search_results</code></p><p><code>search</code></p></td><td><code>af_search</code></td></tr><tr><td><code>share</code></td><td><code>af_share</code></td></tr><tr><td><code>spend_virtual_currency</code></td><td><code>af_spent_credits</code></td></tr><tr><td><code>spent_credits</code></td><td><code>af_spent_credits</code></td></tr><tr><td><code>start_trial</code></td><td><code>af_start_trial</code></td></tr><tr><td><code>subscribe</code></td><td><code>af_subscribe</code></td></tr><tr><td><code>travel_booking</code></td><td><code>af_travel_booking</code></td></tr><tr><td><code>ecommerce_purchase</code></td><td><code>af_travel_booking</code></td></tr><tr><td><code>tutorial_complete</code></td><td><code>af_tutorial_completion</code></td></tr><tr><td><code>app_update</code><br><code>update</code></td><td><code>af_update</code></td></tr><tr><td><code>[Any Event]</code></td><td><code>[Any Event]</code> <strong>[1]</strong></td></tr></tbody></table>

{% hint style="info" %}
**1.** Voir <mark style="color:bleu;">`Event Mapping`</mark> dans [Configuration](#configuration).
{% endhint %}

## Correspondances des champs

{% hint style="info" %}
Les propriétés peuvent être remappées à l’aide de notre fonctionnalité [Smart Mapping](https://doc.commandersact.com/features/destinations/advanced-mapping#smart-mapping) .
{% endhint %}

<table data-header-hidden="false" data-header-sticky><thead><tr><th width="272">Champs Smart Mapping</th><th width="409">Propriétés par défaut de Commanders Act</th><th width="344">Propriétés AppsFlyer</th></tr></thead><tbody><tr><td>-</td><td><code>AppsFlyer Id</code></td><td><code>appsflyer_id</code> <strong>[*]</strong></td></tr><tr><td>-</td><td><code>(event_name)</code></td><td><code>eventName</code> <strong>[*][1]</strong></td></tr><tr><td><code>Horodatage de l’événement</code></td><td><code>context.event_timestamp</code></td><td><code>eventTime</code></td></tr><tr><td><code>ID utilisateur</code></td><td><code>user.id</code></td><td><code>customer_user_id</code></td></tr><tr><td><code>Device IP</code></td><td><code>context.device.ip</code></td><td><code>ip</code></td></tr><tr><td><code>Event Value</code></td><td><code>value</code></td><td><code>af_revenue</code> <strong>[2]</strong></td></tr><tr><td><code>Content Type</code></td><td><code>partners.appsflyer.content_type</code></td><td><code>af_content_type</code> <strong>[2]</strong></td></tr><tr><td><code>Content Identifier</code></td><td><code>partners.appsflyer.content_id</code></td><td><code>af_content_id</code> <strong>[2]</strong></td></tr><tr><td><code>Custom Attribute</code></td><td><code>partners.appsflyer.your_custom_attribute</code></td><td><code>your_custom_attribute</code> <strong>[2]</strong></td></tr><tr><td><code>App Version</code></td><td><code>context.app.version</code></td><td><code>app_version_name</code></td></tr><tr><td><code>App Store</code></td><td><code>partners.appsflyer.app_store</code></td><td><code>app_store</code></td></tr><tr><td><code>Devise</code></td><td><code>currency</code></td><td><code>eventCurrency</code></td></tr><tr><td><code>App Namespace</code></td><td><code>context.app.namespace</code></td><td><code>bundleIdentifier</code></td></tr><tr><td><code>Sharing Filters</code></td><td><code>partners.appsflyer.sharing_filters</code></td><td><code>sharing_filter</code></td></tr><tr><td><code>Is App Clip</code></td><td><code>(partners.appsflyer.is_app_clip)</code></td><td><code>app_type</code> <strong>[3]</strong></td></tr><tr><td>-</td><td><code>Custom Data Mapping</code></td><td><code>custom_data</code></td></tr><tr><td><code>Device OS Name</code></td><td><code>context.device.os.name</code></td><td><code>os</code></td></tr><tr><td><code>Device User Agent</code></td><td><code>context.device.user_agent</code></td><td><code>ua</code></td></tr><tr><td><code>Ad Tracking Enabled</code></td><td><code>(context.device.ad_tracking_enabled)</code></td><td><code>aie</code> <strong>[4]</strong></td></tr><tr><td><code>Identifiant mobile de l’appareil</code></td><td><code>context.device.advertising_id</code></td><td><code>advertising_id</code><br><code>idfa</code></td></tr><tr><td><code>Open Advertising Id</code></td><td><code>partners.appsflyer.oaid</code></td><td><code>oaid</code></td></tr><tr><td><code>Amazon Advertising Id</code></td><td><code>partners.appsflyer.aid</code></td><td><code>amazon_aid</code></td></tr><tr><td><code>International Mobile Equipment Identity</code></td><td><code>partners.appsflyer.imei</code></td><td><code>imei</code></td></tr><tr><td><code>App Set Id Scope</code></td><td><code>partners.appsflyer.app_set_id_scope</code></td><td><code>app_set_id.scope</code></td></tr><tr><td><code>App Set Id</code></td><td><code>partners.appsflyer.app_set_id</code></td><td><code>app_set_id.id</code></td></tr><tr><td><code>Device IDFV</code></td><td><code>context.device.idfv</code></td><td><code>idfv</code></td></tr><tr><td><code>iOS ATTrackingManager Status</code></td><td><code>partners.appsflyer.att</code></td><td><code>att</code></td></tr><tr><td><code>TCF String</code></td><td><code>partners.appsflyer.tcf_string</code></td><td><code>tcf.tcstring</code> <strong>[5]</strong></td></tr><tr><td><code>TCF Policy Version</code></td><td><code>partners.appsflyer.tcf_policy_version</code></td><td><code>tcf.policy_version</code> <strong>[5]</strong></td></tr><tr><td><code>CMP SDK Identifier</code></td><td><code>partners.appsflyer.cmp_sdk_id</code></td><td><code>tcf.cmp_sdk_id</code> <strong>[5]</strong></td></tr><tr><td><code>CMP SDK Version</code></td><td><code>partners.appsflyer.cmp_sdk_version</code></td><td><code>tcf.cmp_sdk_version</code> <strong>[5]</strong></td></tr><tr><td><code>GDPR Applies</code></td><td><code>partners.appsflyer.gdpr_applies</code></td><td><code>manual.gdpr_applies</code> <strong>[5][6]</strong><br><code>tcf.gdpr_applies</code> <strong>[5][6]</strong></td></tr><tr><td><code>Ad User Data Enabled</code></td><td><code>partners.appsflyer.ad_user_data_enabled</code></td><td><code>manual.ad_user_data_enabled</code> <strong>[5]</strong></td></tr><tr><td><code>Ad Personalization Enabled</code></td><td><code>partners.appsflyer.ad_personalization_enabled</code></td><td><code>manual.ad_personalization_enabled</code> <strong>[5]</strong></td></tr></tbody></table>

{% hint style="info" %}
**\*** Propriété obligatoire.\
**1.** Voir [Référence rapide](#quick-reference) pour plus de détails.\
**2.** Définie dans la propriété <mark style="color:bleu;">`eventValue`</mark> .\
**3.** Définie avec <mark style="color:bleu;">`app_clip`</mark> si <mark style="color:bleu;">`partners.appsflyer.is_app_clip`</mark> est <mark style="color:bleu;">`true`</mark> .\
**4.** Définissez avec la valeur opposée dans <mark style="color:bleu;">`context.device.ad_tracking_enabled`</mark> .\
**5.** Définie dans la propriété <mark style="color:bleu;">`consent_data`</mark> .\
**6.** Ces champs s’excluent mutuellement.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.commandersact.com/fr/fonctionnalites/destinations/destinations-catalog/appsflyer/appsflyer-mobile-events-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
