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.
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:
Qonversion.launch(withKey: "projectKey") { (result, error) in
Amplitude.instance()?.setUserId(result.uid)
}
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:

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):

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'
}
Last updated
Was this helpful?