In this article, you’ll learn: |
About Mixpanel
Mixpanel is a tool that allows you to analyze how visitors interact with your website. By integrating VWO with Mixpanel, you can perform the following:
ATTENTION: The steps explained in this article are exclusive to Mixpanel JS/Web SDK. If you're using Mixpanel JS/Web SDK node package manager, you must use the VWO Mixpanel integration plugin to implement this integration. Remember that the integration performed via the node package manager will not provide you with the ability to choose the campaign data to be sent from your VWO account to Mixpanel. It streams all of the active campaign data from VWO to Mixpanel.
Enabling the Integration
To enable the VWO-Mixpanel integration for your VWO account, perform the following:
-
From the main menu of your VWO dashboard, go to Configurations > Integrations.
- Click on the Mixpanel integration and enable it. Once enabled, the Mixpanel screen within the VWO’s Integration section looks like this:
Once the integration is enabled, you can choose to send VWO experiment data to Mixpanel at a campaign level. By default, the Mixpanel integration is enabled for the new VWO testing campaigns.
If you wish to enable the Mixpanel integration for your existing campaigns, select the campaign, go to Configuration > Integrations, and select Mixpanel.
Configuring the Integration
Once you’ve enabled the integration, you will be taken to the Config tab, where you’ll have to configure the transaction of data between the VWO and Mixpanel through the following options, as required:
Enable Sending VWO Campaign Data to Mixpanel
Select this option to send your VWO campaign data (events along with their Campaign ID and Variation ID) to view their reports in Mixpanel, and click Save.
VWO uses the Mixpanel track event to send VWO campaign data to Mixpanel with the following specifics:
Event Name | VWO |
Event Properties |
|
You can locate your campaign ID by accessing the respective campaign and going to Review > Configuration summary > Other Information > Campaign ID.
Viewing Reports in Mixpanel With VWO Campaign Data
Once VWO starts sending campaign data to Mixpanel, you can filter the reports generated in Mixpanel as follows:
- Log in to your Mixpanel account.
- From the Mixpanel dashboard, go to Insights to check the Mixpanel properties for VWO-Test-ID-# (where # is the test ID number).
In the Insights UI, you will see the campaign ID as a property of the VWO event. For example, VWO-Test-ID-523. You can use the values of this property, such as control, variation1, etc., to filter based on the VWO experiment the visitor was part of.
Enable Use of Mixpanel Audience for Visitor Targeting
This option allows you to import Mixpanel cohorts into VWO and use them for targeting visitors in your VWO campaigns. For example, a website can target visitors who have subscribed to their newsletter with a special promotion or discount offer using VWO campaigns.
To enable this, simply select this option and click Save. This generates an API key.
Exporting Cohorts From Mixpanel
Perform the following in your Mixpanel account to enable VWO integration in Mixpanel and configure the export of the relevant cohorts:
- Navigate to the list of integrations and connect the VWO integration using the API key generated in VWO when prompted to enter the API key.
-
To export the relevant cohorts to VWO, go to Cohorts, select the ellipsis icon (...) along the respective cohort, select Export, and select VWO integration.
Receiving the Exported Cohorts in VWO
To receive the exported Mixpanel cohorts into your VWO account, go to your VWO dashboard, navigate to Mixpanel integration’s Config tab and perform the following steps:
-
Click on the Add cohorts from Mixpanel link.
-
In the Add Mixpanel Cohorts popup, select the required cohorts from the list and click Add.
Once done, a toast appears, confirming the addition of the Mixpanel cohort.
- VWO syncs each cohort individually every 24 hours, starting from the last sync time.
- VWO only supports recurring synchronization with Mixpanel cohorts. This ensures that cohort data is updated every two hours.
- The number of cohorts that you can import is subject to the Attributes List consumption quota.
1. Once the setup is complete, ensure to call the identify method (window.mixpanel.identify(‘YOUR_USER_ID’)) on the page. No user profile can be created without this. As a result, users cannot be part of any Cohort.
2. The Mixpanel cohorts sync feature is only available to VWO Enterprise plan customers, and the account must have the attributes list feature enabled.
Using Mixpanel Cohorts for Targeting Your VWO Test Campaigns
All Mixpanel cohorts that are synced into VWO appear as Attributes List in VWO. You can access the attributes lists from the Settings > Accounts > Attributes List section in VWO and use them to target visitors for your test campaigns.
Say you want to target the visitors from your Mixpanel cohorts who have a certain cookie value. You can do this by performing the following steps in your VWO test campaign:
-
Go to Configuration > Audience and Traffic > Target Audience > Custom Segment.
-
From the first dropdown, select the attribute that you want to use to target your visitors. To do this, select Cookie value.
- In the field next to it, enter the name of the cookie.
-
From the dropdown next to the input field, select In list, and in the subsequent dropdown, select the Mixpanel cohort list.
- Click Save Now.
If you have any queries related to VWO-Mixpanel integration, reach out to our support team.