Mixpanel

Send in-app iOS and Android subscription and purchase events to Mixpanel

Qonversion sends valuable in-app revenue events, including purchases, subscriptions after free trials, subscription renewals, and even refunds to your Mixpanel account. This allows you to match your user behavior with their payment data in Mixpanel, and inform your product decisions.
Qonversion validates user receipts directly with App Stores, so the revenue events are tracked even if a user does not open the app.

1. Set up the SDKs

  1. Make sure you have Mixpanel SDK installed. If you do not have Mixpanel 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 Mixpanel SDK to the same user by setting the same user id to Mixpanel that you set to Qovnersion SDK in Using the SDKs guide.

Mixpanel.mainInstance().identify(distinctId: "yourSideUserID")
[[Mixpanel sharedInstance] identify:@"yourSideUserID"];
MixpanelAPI mixpanel =
    MixpanelAPI.getInstance(context, MIXPANEL_TOKEN);

mixpanel.identify("yourSideUserID");

Read more about user identifiers here

❗️

Do not track any purchase events on the client side

Qonversion tracks all revenue events so if you track revenue events with AppsFlyer SDK, you may double count the revenue in your AppsFlyer account.

2. Configure the Mixpanel Integration

  1. Go to your Mixpanel Project Settings and copy your token:
  1. Navigate to the Integrations section in your Qonversion project, select Mixpanel , and provide the Token and Save.

👍

Done

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

Event payload

{
   "event":"subscription_started",
   "properties":{
      "distinct_id":"user_id",
      "Product Name":"product_id",
      "time":1616128486,
      "token":"",
      "$insert_id":"",
      "Product Price":9.9,
      "$append":{
         "$transactions":{
            "$amount":9.9,
            "$time":"2021-03-19T04:34:46",
            "product_id":"product_id"
         }
      }
   }
}

Did this page help you?