Mixpanel

This guide describes how to add and configure Mixpanel integration.

Mixpanel is a powerful mobile analytics service. Send events to Mixpanel via Apphud, analyze your users behavior and make necessary decisions.

How to Add Integration?

Please make sure that Mixpanel Collection common mobile events is Disabled. See step 4 for details.

Step 1
2
3
4
5
6
7
8
9
✅ 10
Step 1
2

Open Mixpanel and sign in. Open Project Settings:

3

Scroll down and copy Token.

You should use Token, not API Key or API Secret.

4

In order not to receive Mixpanel automatic In-App purchase events disable collection common mobile events. Otherwise, if user, for example, starts a trial period Mixpanel will consider this as a revenue.

5

At Apphud go to "Integrations" section and add Mixpanel:

6

Paste Mixpanel Token into the "Mixpanel production app token" field:

7

You may have one more app created in Mixpanel used for testing purposes not to mix test and live data. If you have such app you can paste it's Mixpanel Token into "Mixpanel test app token" field.

All events will be sent using this test key if setIntegrationsTestMode() is called in Apphud SDK. Read more here.

8

You can enter your custom event names or disable some:

9

Enable integration:

✅ 10

If you want to send Revenue information to Mixpanel, check "Send Revenue properties to Mixpanel". Click "Save":

Events Cheat Sheet

This is a list of all possible events and their parameters that are being sent to Mixpanel.

You can read more about subscription events here and parameters here.

Trial
Introductory Offer
Regular
Promo Offer
Autorenew
Other Events
Trial

Trial period started

Default event name: [Apphud] trial_started

Parameters:

  • product_id: String

  • unit: String

  • units_count: Integer

Successful conversion from trial period to regular subscription

Default event name: [Apphud] trial_converted

Parameters:

  • product_id: String

  • local_price: Float

  • currency: String

  • usd_price: Float

Failed conversion from trial period to regular subscription

Default event name: [Apphud] trial_expired

Parameters:

  • product_id: String

  • reason: String

Introductory Offer

Introductory offer started

Default event name: [Apphud] intro_started

Parameters:

  • product_id: String

  • local_price: Float

  • currency: String

  • usd_price: Float

  • offer_type: String

  • unit: String

  • units_count: Integer

Introductory offer renewed

Default event name: [Apphud] intro_renewed

Parameters:

  • product_id: String

  • local_price: Float

  • currency: String

  • usd_price: Float

  • offer_type: String

  • unit: String

  • units_count: Integer

Successful conversion from introductory offer to regular subscription

Default event name: [Apphud] intro_converted

Parameters:

  • product_id: String

  • local_price: Float

  • currency: String

  • usd_price: Float

  • offer_type: String

Failed conversion from introductory offer to regular subscription or failed renew

Default event name: [Apphud] intro_expired

Parameters:

  • product_id: String

  • reason: String

  • offer_type: String

Refund during introductory offer

Default event name: [Apphud] intro_refunded

Parameters:

  • product_id: String

  • local_price: Float

  • currency: String

  • usd_price: Float

  • reason: String

  • offer_type: String

Regular

Subscription started

Default event name: [Apphud] subscription_started

Parameters:

  • product_id: String

  • local_price: Float

  • currency: String

  • usd_price: Float

Subscription renewed

Default event name: [Apphud] subscription_renewed

Parameters:

  • product_id: String

  • local_price: Float

  • currency: String

  • usd_price: Float

Subscription expired

Default event name: [Apphud] subscription_expired

Parameters:

  • product_id: String

  • reason: String

Subscription refunded

Default event name: [Apphud] subscription_refunded

Parameters:

  • product_id: String

  • local_price: Float

  • currency: String

  • usd_price: Float

  • reason: String

Promo Offer

Promotional offer started

Default event name: [Apphud] promo_started

Parameters:

  • product_id: String

  • offer_id: String

  • local_price: Float

  • currency: String

  • usd_price: Float

  • offer_type: String

  • unit: String

  • units_count: Integer

Promotional offer renewed

Default event name: [Apphud] promo_renewed

Parameters:

  • product_id: String

  • offer_id: String

  • local_price: Float

  • currency: String

  • usd_price: Float

  • offer_type: String

  • unit: String

  • units_count: Integer

Successful conversion from promotional offer to regular subscription

Default event name: [Apphud] promo_converted

Parameters:

  • product_id: String

  • offer_id: String

  • local_price: Float

  • currency: String

  • usd_price: Float

  • offer_type: String

Failed conversion from promotional offer to regular subscription or failed renew

Default event name: [Apphud] promo_expired

Parameters:

  • product_id: String

  • offer_id: String

  • reason: String

  • offer_type: String

Refund during promotional offer

Default event name: [Apphud] promo_refunded

Parameters:

  • product_id: String

  • offer_id: String

  • local_price: Float

  • currency: String

  • usd_price: Float

  • reason: String

  • offer_type: String

Autorenew

Autorenew disabled

Default event name: [Apphud] autorenew_disabled

Parameters:

  • product_id: String

Autorenew enabled

Default event name: [Apphud] autorenew_enabled

Parameters:

  • product_id: String

Other Events

Non renewing purchase

Default event name: [Apphud] non_renewing_purchase

Parameters:

  • product_id: String

  • local_price: Float

  • currency: String

  • usd_price: Float

Non renewing purchase refunded

Default event name: [Apphud] non_renewing_refunded

Parameters:

  • product_id: String

  • local_price: Float

  • currency: String

  • usd_price: Float

  • reason: String

Billing issue

Default event name: [Apphud] billing_issue

Parameters:

  • product_id: String

Set up Subscription Status URL to receive autorenew_disabled and autorenew_enabled events in real-time. More information can be found here.

These events:

  • [Apphud] trial_converted,

  • [Apphud] intro_started,

  • [Apphud] intro_renewed,

  • [Apphud] intro_converted,

  • [Apphud] intro_refunded,

  • [Apphud] subscription_started

  • [Apphud] subscription_renewed,

  • [Apphud] subscription_refunded,

  • [Apphud] promo_started,

  • [Apphud] promo_renewed,

  • [Apphud] promo_converted,

  • [Apphud] promo_refunded,

can be optionally sent to Mixpanel with Mixpanel's build-in Revenue parameter converted to USD. This option is off by default, but you can enable this feature in integration settings:

You can also choose between sending revenue as sales or proceeds (without Apple 15%-30% commission).

You can read more how Apple calculates commission here.

User Properties

In the table below you can see the list of user properties that are sent to Mixpanel.

More information about user properties can be found here.

Parameter

Type

[Apphud] status-group_name

String

[Apphud] autorenew-group_name

Boolean

[Apphud] total_spent

Float

[Apphud] paying

Boolean

[Apphud] payments_count

Integer

Sending Test Event

You may send test event to Mixpanel to check if integration is set up correctly. Click "…" and then in dropdown click on "Send test event":

You will see new user in "Live view" report: