Ejemplo n.º 1
0
<?php

require_once '../../phpab.php';
$my_test = new phpab('headline', TRUE);
// remove TRUE to turn on GA tracking and maintain variation
$my_test->add_variation('logos');
$my_test->add_variation('ethos');
$my_test->add_variation('pathos');
?>
<!DOCTYPE html>
<html>
<head>
	<title>Saving fluffy bunnies, one A/B test at a time</title>
	
	<style type="text/css">
		h1 /* control style */
		{
			color: black;
		}
		.phpab-ethos h1 /* =="ethos" variation */
		{
			color: blue;
		}
		.phpab-pathos h1 /* "pathos" variation */
		{
			color: red;
		}
		.phpab-logos h1 /* "logos" variation */
		{
			color: green;
		}
Ejemplo n.º 2
0
<?php

require_once '../../phpab.php';
$my_test = new phpab('headline', TRUE);
// remove TRUE to turn on GA tracking and maintain variation
$my_test->add_variation('logos', '99% of people are concerned about fluffy bunnies.');
$my_test->add_variation('ethos', 'Fluffy bunnies deserve to be protected.');
$my_test->add_variation('pathos', 'Fluffy bunnies are cute and snuggly.');
?>
<!DOCTYPE html>
<html>
<head>
	<title>Saving fluffy bunnies, one A/B test at a time</title>
	
	<style type="text/css">
		h1 /* control style */
		{
			color: black;
		}
		.phpab-ethos h1 /* =="ethos" variation */
		{
			color: blue;
		}
		.phpab-pathos h1 /* "pathos" variation */
		{
			color: red;
		}
		.phpab-logos h1 /* "logos" variation */
		{
			color: green;
		}