This website works best with JavaScript enabled. Learn how to enable JavaScript.


Last updated

Integrating VWO with Mixpanel allows you to push VWO test data into Mixpanel reports.

The end-to-end process of integrating Mixpanel with VWO involves the following steps:

  1. Adding tracking code to test pages
  2. Viewing your VWO Test ID

Adding Tracking Code to Test Pages

  1. Add the following code snippet before the Mixpanel integration code to the pages where VWO test is running. Also, ensure that you add this code only after the VWO smart code on the page.

    <script type="text/javascript">

        var dataSendingTimer,


            _vis_data = {};

        window.VWO = window.VWO || [];

        window.VWO.push(['onVariationApplied', function (data) {

            if(!data) {



            var expId = data[1],

                variationId = data[2];

            if (typeof(_vwo_exp[expId].comb_n[variationId]) != 'undefined' && ['VISUAL_AB', 'VISUAL', 'SPLIT_URL', 'SURVEY'].indexOf(_vwo_exp[expId].type) > -1) {

                _vis_data['VWO-Test-ID-' + expId] = _vwo_exp[expId].comb_n[variationId];


                (function tryPushingData() {


                    if (!window.mixpanel || !window.mixpanel.track) {

                        tryPushingDataTimer = setTimeout(function () {


                        }, 5);



                    dataSendingTimer = setTimeout(function () {

                        window.mixpanel.track("VWO", _vis_data);

                        _vis_data = {};

                    }, 100);





  2. After adding the code snippet, check the Mixpanel properties for VWO-Test-ID-# (where # is the test ID number). You will see the name of the variation shown to the visitor.mixpanel-integrationFor example, VWO-Test-ID-523.mixpanel-integration1

Viewing Your VWO Test ID

To view the test ID in the VWO dashboard:

  1. Select the test for which you want to view the ID.
  2. In the Test Details page, select the Settings tab and then click Summary.kissmetrics-vwo
  3. To view the Test ID, go to the Other Information section of the page.kissmetrics-vwo1

Was this article helpful?

Thanks for your feedback!
Please email us at to tell us what you were looking for. We'll send the answer to your inbox.

Contact Us / Login