A/B Testing tool for the modern Web
importskiftfrom'skift';// Configure Skift.skift.config({tracking: {track: function(event,trackingData){console.log('A/B test event: '+event,trackingData);}}});// Describe the A/B Test.skift.create('My awesome test').setCondition(()=>{returnwindow.location.pathname==='contacts'}).addVariation({name: 'A form with the new design',setup(){document.getElementById('form').addClass('visible')}}).addVariation({name: 'Control'}).setup();// Don't forget to setup the test!We recommend using Amplitude for goal tracking.
Interested in contributing? Please have a look at our developer documentation for more information on how to get started.
