Skip to main content

Mixpanel

Mixpanel is a powerful product analytics service. Its event-driven tracking solution empowers product teams to get valuable insights into optimal user acquisition, conversion, and retention strategies across different platforms.

This integration enables you to bring all the Adapty events into Mixpanel. As a result, you'll gain a more comprehensive insight into your subscription business and customer actions. Adapty provides a complete set of data that lets you track subscription events from stores in one place. With Adapty, you can easily see how your subscribers are behaving, learn what they like, and use that information to communicate with them in a way that's targeted and effective.

How to set up Mixpanel integration

  1. Open the Integrations -> Mixpanel page in the Adapty Dashboard.
  2. Enable the toggle and enter your Mixpanel Token. You can specify a token for all platforms or limit it to specific platforms if you only want to receive data from certain ones.

Finding Your Mixpanel Token

To get your Mixpanel Token:

  1. Log in to your Mixpanel Dashboard.
  2. Open Settings and select Organization Settings.
  1. From the left sidebar, go to Projects and select your project.

How the integration works

Adapty automatically maps relevant event properties—such as user ID and revenue—to Mixpanel-native properties. This ensures accurate tracking and reporting of subscription-related events.

Additionally, Adapty accumulates revenue data per user and updates their User Profile Properties, including subscription state and subscription product ID. Once an event is received, Mixpanel updates the corresponding fields in real time.

Events and tags

Below the credentials, there are three groups of events you can send to Mixpanel from Adapty. Simply turn on the ones you need. Check the full list of the events offered by Adapty here.

We recommend using the default event names provided by Adapty. But you can change the event names based on your needs.

SDK configuration

Use .setIntegrationIdentifier() method to set mixpanelUserId. If not set, Adapty uses your user ID (customerUserId) or if it's null Adapty ID. Make sure that the user id you use to send data to Mixpanel from your app is the same one you send to Adapty.

import Mixpanel

do {
try await Adapty.setIntegrationIdentifier(
key: "mixpanel_user_id",
value: Mixpanel.mainInstance().distinctId
)
} catch {
// handle the error
}