> For the complete documentation index, see [llms.txt](https://docs.buildnatively.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.buildnatively.com/natively-platform/features/analytics/appsflyer.md).

# AppsFlyer

AppsFlyer is a cloud-based mobile attribution and marketing analytics platform which assists app marketers with campaign management and conversion tracking. Its key features include customer journey mapping, attribution modeling, audience segmentation, social media metrics, and retention tracking.

{% hint style="danger" %}
If you have In-App Purchases enabled for your app, AppsFlyer will automatically track them (You can't disable this)
{% endhint %}

{% embed url="<https://youtu.be/LY_CzWvTEvs>" %}

To configure your app to work with AppsFlyer, you need to do the following steps:

1. Create an AppsFlyer account [here](https://www.appsflyer.com/start/)
2. [Create and set up](#how-to-set-up-an-ios-app-in-appsflyer) the AppsFlyer iOS app.
3. [Create and set up](#how-to-set-up-an-android-app-in-appsflyer) the AppsFlyer Android app.
4. [Test](https://support.appsflyer.com/hc/en-us/articles/360001559405-Testing-the-SDK-integration-for-marketers) your integration

## How to set up an iOS app in AppsFlyer?

Go to [My Apps](https://hq1.appsflyer.com/apps/myapps) page, and click "Add app" button (top right corner)

<figure><img src="/files/1nLyZkBeN56ynZpRsMPO" alt=""><figcaption></figcaption></figure>

Then Select "iOS, tvOS, MacOS" platform. Also, you need to provide information about your App Store status. If you've already published the app select the "In Store" option. Otherwise, "Pending approval/not published.

After that, Select the store country and enter your App ID (It can be found on Natively platform "Publish -> iOS Build -> App Store App Id" or in your's AppStoreConnect account)

<figure><img src="/files/LR4zgjFGHNw77SbpckIb" alt=""><figcaption></figcaption></figure>

In the next step, select a relevant currency and if your app is targeted to a kids audience.

<figure><img src="/files/G6SjqQ8FHHfZ0qSZ0km7" alt=""><figcaption></figcaption></figure>

After that, you will see a Success screen and a Dev Key value, copy it&#x20;

<figure><img src="/files/OUZwl0S6L2PQ6ER1DjVa" alt=""><figcaption></figcaption></figure>

Go back to the Natively platform and paste this value. Also, do not forget to fill [Permission description](https://developer.apple.com/app-store/user-privacy-and-data-use) for iOS.

<figure><img src="/files/XdZid4YuA5EYZblOFMvn" alt=""><figcaption></figcaption></figure>

Click Save, and do not forget to rebuild your app after all changes!

{% hint style="danger" %}
Important, the dev key is the same for iOS and Android. if you have both platforms you can just enter it once. But you need to rebuild each app separately.
{% endhint %}

## How to set up an Android app in AppsFlyer?

Go to [My Apps](https://hq1.appsflyer.com/apps/myapps) page, and click "Add app" button (top right corner)

<figure><img src="/files/1nLyZkBeN56ynZpRsMPO" alt=""><figcaption></figcaption></figure>

Then Select "Android, AndroidTV, Fire" platform. Also, you need to provide information about your Google Play status. If you've already published the app select the "In Store" option. Otherwise, "Pending approval/not published.

<figure><img src="/files/77RqQa4KMMlZ0lRky5jD" alt=""><figcaption></figcaption></figure>

If you've selected "In store" option on previous step, you need to enter your app URL

<figure><img src="/files/PdUMpOGEABFcCOVSDkYm" alt=""><figcaption></figcaption></figure>

Otherwise, enter a package id, that can be found on the Natively platform "Publish -> Android Build -> Bundle Identifier"

<figure><img src="/files/WuKd2NYHxLH5oO7789hx" alt=""><figcaption></figcaption></figure>

In the next step, select a relevant currency and if your app is targeted to a kids audience.

<figure><img src="/files/Jld4JMbftCr043s8WQTR" alt=""><figcaption></figcaption></figure>

After that, you will see a Success screen and a Dev Key value, copy it&#x20;

<figure><img src="/files/OUZwl0S6L2PQ6ER1DjVa" alt=""><figcaption></figcaption></figure>

Go back to the Natively platform and paste this value.

{% hint style="danger" %}
Important, the dev key is the same for iOS and Android. if you have both platforms you can just enter it once. But you need to rebuild each app separately.
{% endhint %}

<figure><img src="/files/L8LSbe1qDdRMR4a6Kysj" alt=""><figcaption></figcaption></figure>

Click Save, and do not forget to rebuild your app after all changes!


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.buildnatively.com/natively-platform/features/analytics/appsflyer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
