Amplitude

Enrich Amplitude with Subscription Data

Qonversion can send all revenue events, including purchases in your app, subscriptions after free trials, renewals, and even refunds, to your Amplitude account. This allows you to get data on paying users in Amplitude and match with their behavior patterns, build cohorts, and make the right decisions to grow you business.

Qonversion tracks revenue even if users don't open the app. This allows you to measure the performance of each subscription plan with 100% accuracy.

Getting Started

1. Install the Amplitude SDK. See the Amplitude guide here.

2. Attribute events sent from Qonversion and events received from the Amplitude SDK to the same user by setting Qonversion user id to Amplitude:

Swift
Objective-C
Java
Swift
Qonversion.launch(withKey: "projectKey") { (uid) in
Amplitude.instance()?.setUserId(uid)
}
Objective-C
[Qonversion launchWithKey:@"projectKey" completion:^(NSString * _Nonnull uid) {
[[Amplitude] instance] setUserId:uid];
}];
Java
Qonversion.initialize(this, "ApplicationKey", "yourSideUserID");
Amplitude.getInstance().setUserId("yourSideUserID");

Do not track any purchase events on the client side

Qonversion tracks and sends all revenue events so if you track revenue events with Amplitude SDK, you may double count revenue in your Amplitude account

3. Go to the Amplitude Manage Data Section, choose your app and copy your API Key:

Amplitude Manage Data Section

4. Input the API Key to your app in the Qonversion account and type any custom event name for purchase events (here you can see all tracked events and their default names):

Qonversion Integrations section

Done! Now you will be able to receive revenue and subscription events with values in your Amplitude account.

Event payload

{
// Set up from SDK
'user_id': 'outside_uid',
// https://docs.qonversion.io/overview/user-properties
'user_properties': [],
'idfa': '',
'time': '15907351451000',
'productId': 'product_id',
'event_type': 'trial_converted',
// Unique event id for avoiding duplication event on Amplitude
'insert_id': '5942',
// Amplitude works only with USD
'revenue': '2.39'
}