Skip to content

Commit

Permalink
Note support for S2S tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
dpannasch committed Jan 17, 2025
1 parent f1cc29b commit 3bf709a
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions docs/integrations/attribution/appsflyer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ slug: appsflyer
excerpt: Integrate Purchases SDK with AppsFlyer for precise revenue tracking
hidden: false
---

With our AppsFlyer integration you can:

- Accurately track subscriptions generated from AppsFlyer campaigns, allowing you to know precisely how much revenue your campaigns generate.
Expand All @@ -12,9 +13,9 @@ With our AppsFlyer integration you can:

### Integration at a Glance

| Includes Revenue | Supports Negative Revenue | Sends Sandbox Events | Includes Customer Attributes | Sends Transfer Events | Optional Event Types |
| :--------------: | :-----------------------: | :----------------------: | :----------------------------: | :-------------------: | :------------------------------------------------------------------------------------------------: |
||| Requires Sandbox API key | || `non_subscription_purchase_event` `expiration_event` `billing_issue_event` `product_change_event` |
| Includes Revenue | Supports Negative Revenue | Sends Sandbox Events | Includes Customer Attributes | Sends Transfer Events | Optional Event Types |
| :--------------: | :-----------------------: | :----------------------: | :--------------------------: | :-------------------: | :-----------------------------------------------------------------------------------------------: |
||| Requires Sandbox API key | || `non_subscription_purchase_event` `expiration_event` `billing_issue_event` `product_change_event` |

## 1. Install Appsflyer SDK

Expand Down Expand Up @@ -45,10 +46,12 @@ import kotlinContent from "!!raw-loader!@site/code_blocks/integrations/attributi

{/* Use the RCCodeBlock component to render the code blocks with tabs */}

<RCCodeBlock tabs={[
{ type: 'swift', content: swiftContent },
{ type: 'kotlin', content: kotlinContent }
]} />
<RCCodeBlock
tabs={[
{ type: "swift", content: swiftContent },
{ type: "kotlin", content: kotlinContent },
]}
/>

You should make sure to set attributes after the _Purchases SDK_ is configured, and before the first purchase occurs. It's safe to set this multiple times, as only the new/updated values will be sent to RevenueCat. **If the AppsFlyer ID is not set, the customer's App User ID will be used instead.**

Expand Down Expand Up @@ -106,11 +109,15 @@ After you've set up the _Purchases SDK_ to send attribution data from AppsFlyer
![](/images/f43c7d1-app.revenuecat.com_projects_85ff18c7_collaborators_1_102e08e408ab8c9a966834182c81cbbc.png "app.revenuecat.com_projects_85ff18c7_collaborators (1).png")

2. Choose **AppsFlyer** from the Integrations menu
3. Add your generic developer key if you use one AppsFlyer project for both iOS and android in the Developer Key field **OR** If you have specific developer keys for iOS and/or Android, add those in the associated UI fields
3. Add your general developer key/token if you use one AppsFlyer account for both iOS and Android in the developer key field in the **General configuration** path, or if you have specific developer keys for iOS and/or Android, add those in the associated UI fields in the **App configuration** path
4. If you have specific sandbox developer keys for iOS and/or Android, add those in the associated UI fields
5. Enter the event names that RevenueCat will send or choose the default event names
6. Select whether you want sales reported as gross revenue (before app store commission), or after store commission and/or estimated taxes.

:::info S2S tokens
If the token you're using to connect with AppsFlyer is a S2S token, be sure to check **Key is a S2S token** for your integration, since those keys use a unique endpoint. [Learn more about AppsFlyer token types.](https://support.appsflyer.com/hc/en-us/articles/360004562377-Managing-API-and-Server-to-server-S2S-tokens)
:::

![AppsFlyer Integration](/images/974687c-AppsFlyer_Integration_d261e99446139d6cc9540f25f6d5ff30.png)

## 4. Testing the Appsflyer integration
Expand Down

0 comments on commit 3bf709a

Please sign in to comment.