Send in-app subscription and purchases events to Amplitude
Qonversion sends all revenue events, including purchases in your app, subscriptions after free trials, renewals, and even refunds, to your Amplitude account. This allows you to match your user behavior with their payment history in Amplitude and inform your product decisions.
Attribute events sent from Qonversion and events received from the Amplitude SDK to the same user by setting the same user ID to Amplitude that you set to Qonversion SDK using the setProperty method.
Copy
Amplitude.instance()?.setUserId("yourSideUserID")
If your events from Qonversion do not attribute to users in Amplitude, please check that you are setting user IDs correctly with the SDK. User IDs must be strings with a length of 5 characters or more.
In case you need details about data sent to Amplitude, follow the example below:
Copy
{ // Set up from SDK 'user_id': 'unique user identitifier', 'idfa': '', 'time': '15907351451000', 'productId': 'native.subs.full.v3.month.14.99.trial.7d', 'event_type': 'trial_converted', // Unique event id for avoiding duplication event on Amplitude 'insert_id': '5942', // Amplitude works only with USD 'revenue': '2.39', //device-related properties 'platform':'iOS', 'app_version':'11.11', 'os_name':'iOS', 'os_version':'16.0', 'device_model':'iPhone15', 'country':'UK', 'device_id':'A77BE955-4CFC-A4F5-69D081217E9D3B', 'revenueType': 'trial_converted',}