Skip to content

Instantly share code, notes, and snippets.

@mattm
Last active December 3, 2015 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattm/ce6434b4996bc2293886 to your computer and use it in GitHub Desktop.
Save mattm/ce6434b4996bc2293886 to your computer and use it in GitHub Desktop.
// 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