Skip to content

Commit

Permalink
README.md update
Browse files Browse the repository at this point in the history
  • Loading branch information
dwinph committed Apr 23, 2012
1 parent 53dea58 commit 4d3e68d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ Initialize Muvandy class.
require_once "lib/muvandy.php";
$muvandy = new Muvandy('experiment-id', 'your-api-key', 'visitor-key');
?>

A 'visitor_key' is required. By default, we recommend using the visitor's IP address but if you have other information on them their account id or email address make good unique visitor identifiers.

Get the value by providing variable key and an optional default value. Default value will be displayed if value is not available.
Get the value by providing variable key and a fallback text. Fallback text will be displayed if in case muvandy returns an error for the variable.

<?=
$muvandy->get_variation('heading-1', '<h1>Welcome</h1>');
Expand Down

0 comments on commit 4d3e68d

Please sign in to comment.