Amplitude

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 behaviour with their payment history in Amplitude, and inform your product decisions.

1. Setup the SDKs

  1. Make sure you have Amplitude SDK installed. More about the Amplitude SDKs read here.

  2. Set Qonversion SDKs following installing the SDKs guides.

  3. 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 Qovnersion SDK in User Identifiers guide.

Amplitude.instance()?.setUserId("yourSideUserID")
[[Amplitude] instance] setUserId:@"yourSideUserID"];
Amplitude.getInstance().setUserId("yourSideUserID");
Amplitude.getInstance().userId = "yourSideUserID"
Amplitude.Instance.init("AMPLITUDE_API_KEY", "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.

Read more about user identifiers here

2. Configure the Amplitude Integration

  1. Navigate to your Amplitude's Manage Data Section, choose your app, and copy your API Key:
800
  1. Navigate to the Integrations section in your Qonversion project, select Amplitude, and provide the API Key to the:
3440

Amplitude Integration

  1. You can use the default event names provided by Qonversion or change them as you need.

Read more about tracked events here

👍

Done!

Now Qonversion will start sending in-app purchases and subscriptions data to 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'
}