# Mixpanel Integration

Mixpanel is an event analytics platform that allows anyone to get answers from their customers and revenue data in seconds. You can integrate your CustomFit account with Mixpanel to have your CustomFit experiences and behaviours pushed as custom events in Mixpanel.

### Prerequisites

* A Mixpanel account that is currently active
* Your webpage should have both the CustomFit code snippet and the Mixpanel analytics code.

### Integrating CustomFit with Mixpanel

* Log in to your CustomFit dashboard.
* From the dashboard sidebar, click on **Settings > 3rd Party Integrations.**
* On the integrations page, you can see the **Mixpanel** section.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2Fm6KUJZWJqye50TpKE5XL%2Fimage%20(7).png?alt=media&#x26;token=ac41dcf6-c137-4ed4-9326-e126a8b8722b" alt=""><figcaption></figcaption></figure>

* Click on the status field to enable Mixpanel integration.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FRU6V3fOVa07YmmayXMpY%2Fimage%20(8).png?alt=media&#x26;token=279d294d-768f-4be8-8f00-fc78902e158a" alt=""><figcaption></figcaption></figure>

### Validating integration

Once the integration is configured, you can validate that your experience behavior data is being transmitted to Mixpanel.

* Log in to your Mixpanel account.
* To view a list of all the events the account has received, select the **Events** tab.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FYsN9extK9i5obWQl5UFu%2FMixpanel1.png?alt=media&#x26;token=5c3fb054-438a-4cf9-bc1e-5dc615dc2ff0" alt=""><figcaption></figcaption></figure>

* Under the **Events** tab, you can see an event by the name **CustomFit Experience Viewed**. Click on this event to see the experience and behavior details.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2F5BsY7IBXMYxLyTgd6oZK%2FUntitled.png?alt=media&#x26;token=75034bc2-826f-4022-bd47-55b73cfb9951" alt=""><figcaption></figcaption></figure>

### Reports in Mixpanel

To filter the reports, perform the below steps:

* Log in to your Mixpanel account.
* Under the **Reports** tab, click on the **Insights** option.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FwW1H66azBfTZEtr449jr%2FMixpanel3.png?alt=media&#x26;token=742fcdea-9a0f-40e4-8de5-f6a6c5a3955b" alt=""><figcaption></figcaption></figure>

* Then click on the **Select Event** option. And search for the **CustomFit Experience Viewed** event.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2F8mpCSGOduz5SYbetZhmo%2FMixpanel4.png?alt=media&#x26;token=195d8ba1-1e3b-414a-975f-31287baa69a7" alt=""><figcaption></figcaption></figure>

* Then click on the **Filter** option.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FW19b0prKwVTnhDSNcwya%2FMixpanel5.png?alt=media&#x26;token=8c0a8fea-f17a-457e-8331-c0ebdf81b618" alt=""><figcaption></figcaption></figure>

* From the event properties, select the required property to filter. For example, if you want to filter the report based on experience behavior then select **experience\_behavior**.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FVRqbWk4KRnZ6xC6kvAHS%2FMixpanel6.png?alt=media&#x26;token=60aac6fb-f7ed-4d3b-981e-c170364c6496" alt=""><figcaption></figcaption></figure>

* Then, from the dropdown, select the value for the selected event property and click on the Add button.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FDyYj1KJw1w3SCbBGNOAV%2FMixpanel7.png?alt=media&#x26;token=f857d8b3-7b1d-4d7f-a6a5-05532464c79a" alt=""><figcaption></figcaption></figure>
