Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save saivarunk/8469984 to your computer and use it in GitHub Desktop.
Save saivarunk/8469984 to your computer and use it in GitHub Desktop.
Setup the variation at the top of your PHP page.
<?php
$my_test = new phpab('my_test'); // set the name of the a/b test
$my_test->add_variation('my_variation', '<p>My alternative content</p>'); // add a variation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment