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 behavior 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 Qonversion SDK using the setProperty method.

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. User IDs must be strings with a length of 5 characters or more.

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:

  1. Navigate to the Integrations section in your Qonversion project, select Amplitude, and provide the API Key.
  2. If your Amplitude account is hosted on EU servers, switch your region settings to Europe in the Qonversion Amplitude integration settings.
  3. You can use the default event names provided by Qonversion or change them as you need.
Amplitude Integration

Amplitude Integration

Read more about tracked events here

👍

Done!

Now Qonversion will start sending in-app purchases and subscriptions data to your Amplitude account.

Event Payload

In case you need details about data sent to Amplitude, follow the example below:

{
  // 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'
}