The Next Generation of Visual Website Optimizer is launching in April 2014 See What's Coming

Categories

Find Articles

Mixpanel

To integrate Mixpanel with Visual Website Optimizer reports, you need to take the following steps

1) Add the following code on the page before the Mixpanel integration code (works only with Synchronous code of VWO)

<script type="text/javascript">
var _vis_opt_queue = window._vis_opt_queue || [], _vis_counter = 0, mixpanel = window.mixpanel || [];
_vis_opt_queue.push(function() {
	try {
		if(!_vis_counter) {
			var _vis_data = {},_vis_combination,_vis_id,_vis_l=0;
			for(;_vis_l<_vwo_exp_ids.length;_vis_l++) {
				_vis_id = _vwo_exp_ids[_vis_l];
				if(_vwo_exp[_vis_id].ready) {
					_vis_combination = _vis_opt_readCookie('_vis_opt_exp_'+_vis_id+'_combi');
					if(typeof(_vwo_exp[_vis_id].combination_chosen) != "undefined")
						_vis_combination = _vwo_exp[_vis_id].combination_chosen;
					if(typeof(_vwo_exp[_vis_id].comb_n[_vis_combination]) != "undefined") {
						_vis_data['VWO-Test-ID-'+_vis_id] = _vwo_exp[_vis_id].comb_n[_vis_combination];
						_vis_counter++;
					}
				}
			}
			// Use the _vis_data object created above to fetch the data, 
			// key of the object is the Test ID and the value is Variation Name
			if(_vis_counter) mixpanel.push(['register_once', _vis_data]);
		}
	}
	catch(err) {};
});
</script>

2) Now you can check the properties inside Mixpanel with the name VWO-Test-ID-# (where # is the test ID number, example: VWO-Test-ID-120), inside it you will find the name of the variation shown to the visitor.

To see your test ID, click on the test report and check the test details by clicking on “View/Edit Test Details”. Then, scroll down to the “Other” section where the test ID is displayed.

Visual Website Optimizer Test ID

Note: Do place the VWO Synchronous code and the code shown in point 1 before the Mixpanel code on the page.

VN:F [1.9.22_1171]
Rating: 3.7/5 (3 votes cast)
Mixpanel, 3.7 out of 5 based on 3 ratings
Tags

No Comments

No comments yet.

Leave a comment →


Raise Support Ticket

Top

Raise a Support Ticket!

Your Name

Your Email

Your Phone

Your Query

Or, contact us through email support@wingify.com

A B Testing Tool