RevenueCat

Build With RevenueCat

Build a customized mobile subscription business with RevenueCat. We do the heavy lifting of normalizing subscribers from any source and maintain a single source of truth for subscription status, so you can get back to building your app.

RevenueCat is a powerful, secure, reliable, and free to use in-app purchase server with global support. All you need to get started is an API key.

Tenjin

Integrate Purchases SDK with Tenjin

With our Tenjin integration you can:

  • Accurately track subscriptions generated from Tenjin campaigns, allowing you to know precisely how much revenue your campaigns generate.
  • Send trial conversions and renewals directly from RevenueCat to Tenjin, allowing for tracking without an app open.
  • Continue to follow your cohorts for months to know the long tail revenue generated by your campaigns.

1. Send attribution data to RevenueCat

After you configure the Tenjin SDK, you can use the addAttributionData method for passing any attribution data to Tenjin. Since RevenueCat automatically collects the necessary information for Tenjin, you can pass an empty dictionary as shown below:

import AdSupport

// Tenjin SDK Configuration
// ...
// ...
Purchases.addAttributionData([:], from: .tenjin)
#import <AdSupport/ASIdentifierManager.h>

// Tenjin SDK Configuration
// ...
// ...
[RCPurchases addAttributionData:@{}
                         fromNetwork:RCAttributionNetworkTenjin];
// Tenjin SDK Configuration
// ...
// ...

Purchases.addAttributionData({}, Purchases.AttributionNetwork.TENJIN);

Remove SDK Purchase Tracking

Make sure to remove all client side tracking of revenue. Since RevenueCat will be sending events for all revenue actions, tracking purchases with the Tenjin SDK directly can lead to double counting of revenue in Tenjin.

2. Send RevenueCat events into Tenjin

After you've set up the Purchase SDK to send attribution data from Tenjin to RevenueCat, you can "turn on" the integration and configure the event names from the RevenueCat dashboard.

  1. Navigate to your app in the RevenueCat dashboard and choose 'Tenjin' from the integrations menu
  2. Add your Tenjin developer API key
  3. Select whether you want RevenueCat to report proceeds (after app store cut) or revenue (gross sales)
Tenjin configuration screen

Tenjin configuration screen

Tenjin


Integrate Purchases SDK with Tenjin

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.