Talk to a sales representative

+1 844-822-8378

Write to us


Posted in Plugins on

To integrate KISSmetrics with VWO reports, you need to take the following steps

1) Add the following code on the page (location does not matter, works with both Synchronous and Asynchronous code of VWO)

<script type="text/javascript">
var _vis_opt_queue = window._vis_opt_queue || [], _vis_counter = 0, _kmq = _kmq || [];
_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];
			// 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) _kmq.push(['set', _vis_data]);
	catch(err) {};


2) Now you can check the properties inside KISSmetrics with the name VWO-Test-ID-# (where # is the test ID, 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