Event based triggers in AB testing using VWO

by GrapeSoda   Last Updated January 07, 2017 08:01 AM

Is it possible to create an AB test where 100% of users see a page and only those that click a button are entered into the variation in VWO (Visual Website Optimizer)?

I have asked the company but they often take a while to respond.

Tags : a-b-testing


Answers 1


This can be done by adding some code to the source:

window.VWO = window.VWO || [];
window.VWO.push(['activate', false, <array_of_campaign_ids>, true]);

Example : Triggering campaign 10 on button click

$('#trigger').on('click', function () {
    window.VWO = window.VWO || [];
    window.VWO.push(['activate', false, [10], true]);
});

Triggering multiple campaigns

$('#trigger').on('click', function () {
    window.VWO = window.VWO || [];
    window.VWO.push(['activate', false, [10,20,30], true]);
});

Then VWO has to set the key manual:true at their end which we would let them know when the test is built.

GrapeSoda
GrapeSoda
December 07, 2016 16:26 PM

Related Questions




A/B testing multiple pages

Updated November 02, 2017 12:04 PM

Tracking alternatives withing goal funnels

Updated October 10, 2017 21:04 PM