Skip to content

Commit 3bf709a

Browse files
committed
Note support for S2S tokens
1 parent f1cc29b commit 3bf709a

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

docs/integrations/attribution/appsflyer.mdx

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ slug: appsflyer
44
excerpt: Integrate Purchases SDK with AppsFlyer for precise revenue tracking
55
hidden: false
66
---
7+
78
With our AppsFlyer integration you can:
89

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

1314
### Integration at a Glance
1415

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

1920
## 1. Install Appsflyer SDK
2021

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

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

48-
<RCCodeBlock tabs={[
49-
{ type: 'swift', content: swiftContent },
50-
{ type: 'kotlin', content: kotlinContent }
51-
]} />
49+
<RCCodeBlock
50+
tabs={[
51+
{ type: "swift", content: swiftContent },
52+
{ type: "kotlin", content: kotlinContent },
53+
]}
54+
/>
5255

5356
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.**
5457

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

108111
2. Choose **AppsFlyer** from the Integrations menu
109-
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
112+
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
110113
4. If you have specific sandbox developer keys for iOS and/or Android, add those in the associated UI fields
111114
5. Enter the event names that RevenueCat will send or choose the default event names
112115
6. Select whether you want sales reported as gross revenue (before app store commission), or after store commission and/or estimated taxes.
113116

117+
:::info S2S tokens
118+
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)
119+
:::
120+
114121
![AppsFlyer Integration](/images/974687c-AppsFlyer_Integration_d261e99446139d6cc9540f25f6d5ff30.png)
115122

116123
## 4. Testing the Appsflyer integration

0 commit comments

Comments
 (0)