Revenue Tracking
In the Revenue Tracking section under Settings, you can setup revenue tracking three different ways. Revenue tracking is required to show revenue metrics in the Superwall dashboard.
Choose only one of the three methods below. As soon as you’ve completed the steps for any of them, you should see integrated events begin to show up in Superwall’s metrics.
Revenue tracking status
Your revenue tracking status will be listed at the top, indicating if you’ve successfully set it up or not:
Method 1: App Store Connect
Use this method to forward subscriptions events from App Store Connect back to Superwall. To get started, go to App Store Connect → App Information → App Store Server Notifications → Production & Sandbox URL fields:
For the URL, use the value in Superwall that was prefilled by clicking the copy button:
Then, enter this in App Store Connect modal:
Click the Save button once you’ve entered in the URL.
Method 2: Event Forwarding
If you handle subscription logic on your own server and are using Apple’s subscription events notifications, use this method. It will forward Apple subscription events from your server to Superwall.
To implement this method, simply forward the unmodified request to Superwall before any other application logic.
Here’s a Node.js example, just be sure to use your own API key in place of YOUR_PRIVATE_KEY
in the snippet below:
Method 3: RevenueCat
Finally, if you’re using Revenue Cat, you can forward subscription events from RevenueCat to back to Superwall. For implementation details, please refer to their documentation.
Tracking Revenue with RevenueCat for iOS and Android Projects
If you are using RevenueCat and have both an Android and iOS app under the same project, be aware that you should have two Superwall apps (one for Android and iOS). Then, you can link them together as one project under Settings -> Projects. In your RevenueCat project, you can refer to either the iOS or Android key from Superwall. Superwall will still segment the data by platform.
Here’s an example, this app has both an Android and iOS project in Superwall. Both of them use RevenueCat:
In Superwall, those have been linked together as a project:
For either the iOS or Android project, go to Settings -> Revenue Tracking -> RevenueCat and get the integration token (or make one if you haven’t yet):
Finally, in RevenueCat, use the token in their integration settings for Superwall:
In-App Purchase configuration
Complete this step once your products are live and approved by App Store review.
Setting up the in-app purchase configuration for iOS apps allows Superwall to power features like refund consumption.
To complete setup, follow these steps:
- Navigate to App Store Connect.
- Click on Users and Access.
- Navigate to App Store Connect.
- Click on Users and Access.
- Click on Integrations at the top.
- Under Keys, choose In-App Purchase.
- Click on + to create a new key if you don’t have one. Add a name, and click Generate.
You can reuse the same key for all of the apps falling under the same App Store Connect account. Though, you must still have access to the one-time download of its generated P8 key file. If you don’t have access to this anymore, simply create a new one.
- Click on “Download In-App Purchase Key” for the new key. On the resulting modal, click Download.
IMPORTANT: You only have one chance to download the key file. Make sure to save it in a secure location.
- Upload the key file you downloaded in the previous step to Superwall under “P8 Key File.”
- Fill in the Bundle ID of your app.
- Enter the Key ID of the key you created in App Store Connect. You can find it in the “Key ID” column shown in the image from step 3. Locate the row for the key you made and copy the corresponding Key ID here.
- For Issuer ID, fill in the value found at Users and Access -> Integrations -> In-App Purchase in App Store Connect:
- Click on Update and confirm everything is setup correctly.
App Store Connect API
Complete this step once your products are live and approved by App Store review.
Setting up the App Store Connect API helps Superwall pull product data from the App Store.
To complete setup, follow these steps:
- Navigate to App Store Connect.
- Click on Users and Access.
- Navigate to App Store Connect.
- Click on Users and Access.
- Click on Integrations at the top.
- Under Keys, choose App Store Connect API.
- Choose Team Keys and create a new one.
- Add a name, and for Role choose App Manager.
- Click on Generate.
- Click on Download for the new key. On the resulting modal, click Download.
IMPORTANT: You only have one chance to download the key file. Make sure to save it in a secure location.
- Upload the key file you downloaded in the previous step to Superwall under “P8 Key File.”
- Enter the Key ID of the key you created in App Store Connect. You can find it in the “Key ID” column shown in the image from step 3. Locate the row for the key you made and copy the corresponding Key ID here.
- For Issuer ID, fill in the value found at Users and Access -> Integrations -> In-App Purchase in App Store Connect:
- Click on Update and confirm everything is setup correctly.