Skip to content

Instantly share code, notes, and snippets.

Last active Dec 3, 2015
What would you like to do?
// Here, the user is assigned one of the variations for this test
// so variation will be either `drake` or `nudge`
var variation = abtest( 'businessPluginsNudge' );
// We can then vary what the user sees based on the variation
// he or she was assigned to
if ( variation === 'drake' ) {
// Do something
} else {
// Do something else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment