# Mixpanel

<div align="left"><figure><img src="https://727226624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjFmyReUsbJqDjHEAlW%2Fuploads%2FCp3QrD8d9DqCNxmKME0Q%2Fmixpanel.png?alt=media&#x26;token=60d1204d-9054-4702-8309-3415d1a3fef2" alt=""><figcaption></figcaption></figure></div>

## Set up

### Navigate to the Integration settings view

1. Select an app in the top left corner from the Switcher
2. Navigate to **App Settings** by clicking the gear icon (⚙️) at the top of the Timeline sidebar
3. Click on **Integrations** in the sidebar

### **Connect Mixpanel**

1. Find the **Mixpanel** integration module under the **Observability & analytics** section
2. Click the **Connect** button
3. Enter your **Service Account Username** and **Service Account Secret.** You can create Service Accounts by visiting **Project Settings > Service Accounts** in Mixpanel. :link: [**Mixpanel Documentation: Service Accounts**](https://developer.mixpanel.com/reference/service-accounts)**.**

### **Configure the Mixpanel integration**

1. Enter your project ID, which can be found by visiting **Project Settings > Overview**
2. Select key events from your Mixpanel project to monitor from Runway. For each given event, you can use the Property field to specify an event property (e.g. `amount`) to track property value-related metrics such as averages, medians, and percentiles. Alternatively, you can also use the Property field to filter events using basic query string syntax: for example, if you have a `page_load` event and want to measure unsuccessful loads on a "checkout" screen, you might enter `name=checkout&success=false` for the Property value.&#x20;
   1. Some legacy automatically tracked events are aliased to a different name in the dashboard. If you plan to track any of these events, please refer to the [iOS](https://docs.mixpanel.com/docs/tracking-methods/sdks/swift#legacy-automatically-tracked-events) or [Android](https://docs.mixpanel.com/docs/tracking-methods/sdks/android#legacy-automatically-tracked-events) page in the Mixpanel docs and use the `Raw Name` that maps to their `Display Name`.

{% hint style="info" %}
The events you select as part of the integration setup will be surfaced in the [**Rollout**](https://docs.runway.team/using-runway/rollout) view of each release. You can also configure [health metrics](https://docs.runway.team/using-runway/app-settings/health-metrics-settings) that define acceptable thresholds for any of these events, associate metrics with [rollout automations](https://docs.runway.team/automations/types-of-automations#halt-unstable-phased-releases) and more!
{% endhint %}

For a complete list of available metric types that Runway generates from your selected events, visit the [Metric Types documentation](https://docs.runway.team/using-runway/app-settings/health-metrics-settings#metric-types).
