# 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="/files/goVQzqeLRVOJhzHhJlCc" alt=""><figcaption></figcaption></figure>

* Click on the status field to enable Mixpanel integration.

<figure><img src="/files/TTUXmYW3qiAET0Ji5Sow" 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="/files/fB5nFViPSZDvffuqo7xp" 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="/files/wiHnk6FP04r9YrPAKeT7" 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="/files/g7Pm44o9qxIfwuoOiH2p" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/o2pAa2M6Cle188BJyeeZ" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/f9GMGOivEenAA9UgDkrB" 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="/files/mQNy6Ws3VzuLOUTeQS7k" 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="/files/d5VoIpQBZUqHDEVa6EfX" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.customfit.ai/integrations/mixpanel-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
