> For the complete documentation index, see [llms.txt](https://resources.less.tech/less-tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resources.less.tech/less-tech/connectors/connector-guides/mixpanel.md).

# Mixpanel

{% hint style="info" %}
💪 **Difficulty:** medium-to-slightly-difficult

⏳ **Time to complete**: approx. 10 minutes
{% endhint %}

## 💬 Description

Mixpanel is a event-based product analytics tool that helps product owners, developers and designers understand the way users use their product. We can extract all events going through Mixpanel.

## 🤑 Use Case

Synthesize how users behave with your product. The data from Mixpanel becomes most interesting in conjunction with other data. For instance, you can A/B test email content (with Mailchimp or Customer.io) and track how the behavior of certain users changes.

## 🛠️ Setup

Setting up Mixpanel is slightly complex. We outlined all the necessary steps below. If you want us to help you do it, feel free to schedule a call [here](https://calendly.com/thomas-less/speak-to-less).

{% hint style="info" %}
You must be an Admin or Owner in Mixpanel to set up the following
{% endhint %}

### Step #1: Find your project

Select the project from which you want to export data

<figure><img src="https://1596277999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaSJL6Od4KuV8hrdCZbXp%2Fuploads%2FQNaQIy0MoQKijkHGbduf%2Fimage.png?alt=media&amp;token=b308222b-f364-4e66-a080-524b49bf177e" alt=""><figcaption></figcaption></figure>

### Step #2: Go to settings

Select “Project Settings” for the particular project

<figure><img src="https://1596277999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaSJL6Od4KuV8hrdCZbXp%2Fuploads%2FVtrORk2PpW7lO7rZsefE%2F2.png?alt=media&amp;token=a4c467e0-9f78-47e4-aa04-5854b6c5e966" alt=""><figcaption></figcaption></figure>

### Step #3: ID and Data Residency

Note down your Project ID and your Data Residency.

<figure><img src="https://1596277999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaSJL6Od4KuV8hrdCZbXp%2Fuploads%2FTynRPcwdE1HpujW3oH8D%2F3.png?alt=media&amp;token=d61d60c8-5ae7-41c1-ad8c-15b111698dc8" alt=""><figcaption></figcaption></figure>

### Step #4: Service Accounts

Go to “Service Accounts”

<figure><img src="https://1596277999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaSJL6Od4KuV8hrdCZbXp%2Fuploads%2FMMXMR58xhyFAu1hK9hFl%2F4.png?alt=media&amp;token=bd5909de-2c2b-4a8e-8bf6-f47f81796a95" alt=""><figcaption></figcaption></figure>

### Step #5: Add new Service Account

Click “Add Service Account”

<figure><img src="https://1596277999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaSJL6Od4KuV8hrdCZbXp%2Fuploads%2Fs5unRBtFpaiTLvHqFKwy%2F5.png?alt=media&amp;token=eb636b93-d1c1-467d-a290-b2846f2844e9" alt=""><figcaption></figcaption></figure>

### Step #6: Create Service Account

Input a name for your Service Account, set the project role to “Consumer” and Expiration to “Never”.

{% hint style="danger" %}
IMPORTANT. After clicking “Add” you will be shown a “Username” and “Secret”. You must copy/paste these into a notes program, password manager or whatever your company uses to store password. In other words - don’t just rush through the next steps.
{% endhint %}

<figure><img src="https://1596277999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaSJL6Od4KuV8hrdCZbXp%2Fuploads%2FQs0pAZOZFY4h539CiCSB%2F6.png?alt=media&amp;token=f67eb28a-b9c7-4a56-b269-fd621c5a2484" alt=""><figcaption></figcaption></figure>

### Step #7: Copy/paste username and secret

Copy the “Username” and “Secret” and store them in a secure location. Note that we put a yellow box over our internal credentials below.

<figure><img src="https://1596277999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaSJL6Od4KuV8hrdCZbXp%2Fuploads%2FO3bEBIZyj5uM0p8wlkFd%2F7.png?alt=media&amp;token=a3384f8b-cfd3-4a46-9276-c78d4b8c2e6f" alt=""><figcaption></figcaption></figure>

### Step #8: Input all in Less

Go to your Less platform and input all the 4 parameters in the Mixpannel Connector configuration window. Click “Save Changes” and you’ve set up your Mixpanel Connector.

<figure><img src="https://1596277999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaSJL6Od4KuV8hrdCZbXp%2Fuploads%2FkBpfScHM4yCwShcUuFTc%2F9.png?alt=media&amp;token=cd6c4efd-a0ca-4830-a362-090be9f5f766" alt=""><figcaption></figcaption></figure>

### Step #9: Select number of days to look back

You need to input how many days of data you want to include. If you input 365 then we’ll extract a running 365 days every day. So on Jan 1st, 2000 we’ll extract data from Jan 1st, 1999 - Jan 1st, 2000. The next day, we’ll extract from Jan 2nd, 1999 - Jan 2nd, 2000. You get the point...
