AppsFlyer Setup Guide

Step-by-step instructions to configure AppsFlyer Tracking & Attribution

1

Create Account & Add Your App

  1. Go to the AppsFlyer Dashboard and log in or create a new account.
  2. From the top menu, click on "My Apps" (or click the Add App button).
  3. Select the platform of your app (Android, iOS, or Web).
  4. Enter your App's store URL, or if it's not published yet, enter the package name (e.g., com.yourcompany.app).
  5. Complete the wizard to add your app to the dashboard.
2

Get Your Dev Key (Developer Key)

The Developer Key is required to initialize the AppsFlyer SDK and authenticate your app's API requests.

  1. In the AppsFlyer dashboard, select your app from the top app selector.
  2. Go to Configuration in the left sidebar Menu.
  3. Click on App Settings.
  4. Scroll down to the SDK Initialization or Dev Key section.
  5. Copy the Dev Key. It usually looks like a long string of random characters.
Important: Keep your Dev Key secret. Do not expose it publicly in client-side repositories.
3

Get Your App ID

The App ID varies depending on your platform (Android vs iOS).

You can find this easily in the App Settings page right above where you found the Dev Key.

4

Configure Postbacks & Server-to-Server (Optional)

If you are integrating server-side events or tracking rewards through your backend:

  1. Go to Configuration > API Access or Integration.
  2. Add your server's endpoint URL for receiving AppsFlyer Postbacks.
  3. Ensure you have mapped your in-app events properly in the Events section.
5

Add to Your Environment (.env)

Now that you have your credentials, add them to your project's configuration.

Map to your .env file

Open your .env file and add the following lines, replacing the placeholder text with your actual AppsFlyer details:

# AppsFlyer Configuration APPSFLYER_DEV_KEY=your_copied_dev_key_here APPSFLYER_APP_ID=com.yourcompany.app
Note: Make sure to clear your config cache after editing the .env file by running:
php artisan config:clear
×