The Brevo integration with Mixpanel allows you to sync users within a cohort to a custom webhook URL. When a sync is established, Mixpanel will sync the users within the cohort to the URL and subsequently sync diffs (i.e. the users who entered or exited the cohort since the last sync).
Before you start
- Sign up for a Brevo account. You can choose either a free or paid plan, depending on your needs. To learn more and choose the best plan for you, check our dedicated article About Brevo pricing plans.
- Make sure your Mixpanel cohorts contain users.
Step 1: Create a service account in Mixpanel
To integrate Mixpanel with Brevo, you will first need to create a new service account and save its username and secret:
- In your Mixpanel account, click the Settings menu.
- Under Organization Settings, select your organization.
- In the sidebar menu, click Service Accounts.
- Click + Add Service Account to create your service account.
- Fill in your service account information. To learn more about how to create a service account, check Mixpanel's documentation.
- Click Create.
- Save the following information in a safe place:
- Username
- Secret
- Click Done.
Step 2: Set up the Mixpanel integration
Now that you have retrieved your service account's username and secret, you are ready to start integrating Mixpanel with Brevo:
- Click the account dropdown > Plugins & Integration.
- Click the Mixpanel integration.
- Give a name to the integration.
- Click Create integration.
Connect account
Connect the integration to the service account you previously created:
- Click Add an account.
- Fill in the account information:
- Authentication name: the name you want to give to the account
-
URL:
- Standard Server: https://mixpanel.com
- EU Server: https://eu.mixpanel.com
- Username: the service account's username (that you previously saved)
- Password: the service account's secret (that you previously saved)
- Click Proceed. Your account is now active.
- Click Continue.
Configure Mixpanel
Retrieve your project ID and add it to the integration:
- In your Mixpanel account, click the Settings menu.
- Under Organization Settings, select your organization.
- In the sidebar menu, click Projects.
- Click your project to find all its details.
- Save your project ID.
- In your Brevo account, enter your project ID.
- Click Continue.
Mapping Data
Indicate how Brevo should match the data from your Mixpanel project:
- Click a drop-down menu in the Mixpanel attribute column.
❗️ ImportantMake sure your Mixpanel cohorts contain users. Otherwise, the Mixpanel attribute dropdown fields will appear as empty. To learn more about how to create a cohort, check out Mixpanel’s documentation. - Select the desired attribute to map to the contact attribute.
- Once you are done, click Continue.
Select your list
Select in which list you want to synchronize your Mixpanel contacts:
- From here, you have two options to synchronize your Mixpanel contacts:
- In the Select a list tab, select the list in which you want to synchronize your Mixpanel contacts.
- In the Create a list tab, create a new list in which you want to synchronize your Mixpanel contacts.
- Click Continue.
Confirmation
To enable the integration, click Save and activate.
Step 3: Create a new webhook connection
To create a new webhook connection:
- Copy the webhook URL that appears on your screen.
-
Click Finish.
💡 Good to knowWhen editing the Mixpanel integration, the webhook URL will appear again. However, in that case, you won't need to copy it and will just need to click Finish. - On your Mixpanel account, click the Data Management menu.
- Select Integrations.
- Scroll down and select Custom Webhook.
- Click + Add Connection to add a new webhook connection.
- Give a name to your webhook connection and paste the webhook URL copied earlier.
- Click Continue to activate your new webhook connection.
Step 4: Sync users within a cohort to your new webhook connection
To sync the users within a cohort to your new webhook connection:
- On your Mixpanel account, click the Data Management menu.
-
Select Cohorts.
- Click the three dots menu next to the cohort you want to sync and select Export to > Custom Webhook (Name of your new webhook connection).
- Select Recurring sync.
- Click Begin Sync.
Your custom webhook will be updated. Then, every hour, it will be updated again with the most current set of users exported from the cohort.
❓ FAQs: API limitations
20,000 contacts can be initially imported.
If the syncs are 30 minutes apart, then 2,000 contacts can be synced in 1 hour.
2,000 contacts can be synced within 1 hour through bulk creation.
⏩ What's next?
🤔 Have a question?
If you have a question, feel free to contact our support team by creating a ticket from your account. If you don't have an account yet, you can contact us here.
If you’re looking for help with a project using Brevo, we can match you with the right certified Brevo expert partner.