Get access to the powerful yet simple subscription analytics:
- Conversion from install to paying user, MRR, LTV, churn and other metrics.
- Feed the advertising and analytics tools you are already using with the data on high-value users to improve your ads targeting and marketing ROAS.
Getting started
$ npm install react-native-qonversion --save
Mostly automatic installation
$ react-native link react-native-qonversion
Usage
You need to configure Qonversion once at a starting point of your app.
For example, launch Qonversion in initState of your top level widget:
import { NativeModules } from 'react-native';
const { Qonversion } = NativeModules.RNQonversion;
Qonversion.launchWithKey(YOUR_API_KEY, (uid) => {
console.log(uid);
});Usually Qonversion will track purchases automatically.
Still, there are few ways to launch Qonversion:
-
launchWithKey(String key, Callback callback)launches Qonversion SDK with the given API key.callbackwill returnuidfor Ads integrations. -
launchWithKeyUserID(String key, String userID)is the same as previous but allows you to specify client sideuserID(instead of Qonversion user ID) that will be used for matching data in the third party data: -
Under development
launchWithKeyAutotrackPurchases(String key, bool autoTrackPurchases, Callback callback)is the same as previous but allows you to turn off auto tracking purchases and track it manually.
There are also 2 iOS-specific methods for now:
addAttributionData(Object data, Number provider, String userID)will add custom attribution data, whereprovider == 0is AppsFlyer andprovider == 1is Branch.setDebugMode(Bool)sets debug mode.
License
Qonversion SDK is available under the MIT license.