Segment

Send in-app revenue events to your Segment account

1. Set up the SDKs

  1. Make sure you have Segment SDK installed. If you do not have Segment integration yet, please use this documentation.

  2. Set Qonversion SDKs following installing the SDKs guides.

  3. Attribute events sent from Qonversion and events received from the Segment SDK to the same user by setting the same user id to Segment that you set to Qonversion SDK in the User Identifiers guide.

SEGAnalytics.sharedAnalytics().identify("yourSideUserID")
[[SEGAnalytics sharedAnalytics] identify:@"yourSideUserID"];
Analytics.with(context).identify("yourSideUserID", null, null);
Analytics.with(context).identify("yourSideUserID")

2. Configure the Segment Integration

  1. Go to your Segment account and copy the Write Key .

  2. Navigate to the Integrations section in your Qonversion project, select Segment , provide the Write Key and Save.

Event Payload

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

{
   "userId":"",
   "event":"subscription_renewed",
   "timestamp":1686761639,
   "properties":{
      "product":"product_id",
      "price":2.99,
      "currency":"EUR"
   }
}