Last active
December 3, 2015 17:13
-
-
Save mattm/ce6434b4996bc2293886 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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