Kisslytics
Adriano Lerma

How to create landing pages for A/B test

Introduction

Kisslytics offers a very complete and intelligent A/B test method to try which versions has more performance and has better results on conversion rates vs bouce rate.

Kisslytics brings you the option to insert a very little snippet in JS (in terms of easy and lightweight) to start to recollet information. Those JS tracks has the A parameter or B parameter. So, you should determine which one is A or B and publish by your own strategy. Maybe you are a experienced developer, so, this tutorial is not for you. We want to help to those people that are not very familiarized with coding or developing work. So, lets go!

One of the key of the A/B testing is the absolutely randomizer on determining which page the user should land. So, we need to do it randomly. If you do not let this randomly works, your KPIs or metrics to make a decision wont work if the parametrized records aren't be strictly randomlyzed. It is not enought if you try to publish A version during 30 days and B version during 30 days because the first 30 days are not the same in terms of logical maths period.

How to land a user to A or B randomly with Javascript.

Easy JS snippet

<script>
var redirect, pageOptions = ['a.html', 'b.html'];
if (Math.random() < .5){
    redirect = pageOptions[0];
} else {
    redirect = pageOptions[1];
}
window.location.assign(redirect);
</script>

Another cool snippet

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<head>

<script language="JavaScript">

<!-- Begin
var howMany = 2;  // max number of items listed below
var page = new Array(howMany+1);

page[0]="page-A.html";
page[1]="page-B.html";

function rndnumber(){
var randscript = -1;
while (randscript < 0 || randscript > howMany || isNaN(randscript)){
randscript = parseInt(Math.random()*(howMany+1));
}
return randscript;
}
quo = rndnumber();
quox = page[quo];
window.location=(quox);
// End -->
</script>
</head>

<p><center>
<font face="arial, helvetica" size="-2">Yo'll be randmly redirect to my landing page</font>
</center><p>

(Script Size: 0.89 KB)

How to land a user to A or B randomly with PHP.

Very easy snippet

<?php
srand((double)microtime()*1000000);

if (rand(1,2)==1)
{
   include("page-A.html");
}
else
{
   include("page-B.html");
};
?>

Spread the word!

Facebook Twitter Google+


Publicaciones recientes