jQuery.AB.js is a plugin built for jQuery that allows for A/B testing on any of your websites. In order to run the server code provided with this plugin on your own server, you will need:
Download all the code here: jQuery.ab.current.zip
Contents:
CREATE DATABASE jquery_ab;CREATE USER 'jquery_ab_user'@'localhost' IDENTIFIED BY PASSWORD('jquery_ab_pass');
GRANT INSERT, UPDATE, SELECT ON 'jquery_ab'.* TO 'jquery_ab'@'localhost'; $_HOST = "localhost";
$_DB = "jquery_ab";
$_USER = "jquery_ab_user";
$_PASS = "jquery_ab_pass";var defaults = {
URL: "http://www.yourdomain.com/path/to/serv.php",
els: this,
idx: Math.round(Math.random()*(this.length-1)),
testname: 'default',
action_el: null,
action_ev: 'click'
}
For usage instructions: Click Here
Having troubles? Check-out the Troubleshooting Guide