> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reyapp.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Track attribution and events

> Understand the attribution and in-app events Rey sends to AppsFlyer.

Once AppsFlyer is connected, Rey sends attribution-ready data so you can measure which campaigns bring valuable users to your app.

## Events Rey tracks automatically

| Event | Description |
| - | - |
| `app_install` | Fired on first launch after install |
| `first_open` | Fired the first time a user opens the app |
| `screen_view` | Fired each time a user navigates to a new screen |

> [!NOTE]
>
> AppsFlyer attribution requires an app-store installation. It does not work for apps tested only in the Rey preview environment.

## Send custom events

Use a **Track Event** action in Rey to capture moments that matter to your app, such as completing onboarding, making a purchase, or reaching a key feature.

**1. Select the component**

Choose the component you want to track, such as a button.

**2. Open Logic**

In the property toolbar, open the **Logic** tab, choose a trigger, and add a **Track Event** action.

**3. Name the event**

Enter the event name and any properties you want to include.

> [!TIP]
>
> Use consistent `snake_case` event names across iOS and Android. AppsFlyer treats `Purchase_Completed` and `purchase_completed` as different events.

## View attribution data

View installs by campaign, cost per install, return on ad spend, and in-app event counts in your AppsFlyer dashboard.

## Deep links and SKAdNetwork

Configure OneLink deep links in AppsFlyer under **Engagement & Deep Linking → OneLink**. AppsFlyer also supports Apple's SKAdNetwork (SKAN); configure SKAN conversion values in AppsFlyer when needed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.