Integrating KISSmetrics with VWO helps you push data from test pages to KISSmetrics and allows you to monitor or compare data in KISSmetrics. The end-to-end process of integrating KISSmetrics with VWO involves the following steps:
- Adding tracking code to test pages
- Viewing your VWO Test ID
Adding Tracking Code Test Pages
Add the following code snippet on the pages where the VWO test is running. The snippet works with both Synchronous and Asynchronous code of VWO, regardless of the location.
<script type="text/javascript">
(function() {
var vwoKmData = {},
dataSendingTimer;
window.VWO = window.VWO || [];
window._kmq = window._kmq || [];
window.VWO.push(['onVariationApplied', function(data) {
if (!data) {
return;
}
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) {
vwoKmData['VWO-Test-ID-' + expId] = _vwo_exp[expId].comb_n[variationId];
clearTimeout(dataSendingTimer);
dataSendingTimer = setTimeout(function() {
window._kmq.push(['set', vwoKmData]);
vwoKmData = {};
}, 100);
}
}]);
})();
</script>
After you have added the VWO code, check the Tracked Properties section in KISSmetrics with the name VWO-Test-ID-# (where # is the test ID. You will find the variation name displayed for the visitor inside the test. For example, VWO-Test-ID-120.
Viewing your VWO Test ID
Follow these steps to view the test ID in the VWO dashboard:
- Select test for which you want to view the ID.
- On the test details page, select the Settings tab and then click Summary.
- Next, go to the Other Information section of the page to view the Campaign ID.
Comments
0 comments
Please sign in to leave a comment.