Skip to content

Instantly share code, notes, and snippets.

@Danny-Driscoll
Last active June 1, 2017 15:08
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 Danny-Driscoll/da085586ce1f360fe08d295e7c6b3e82 to your computer and use it in GitHub Desktop.
Save Danny-Driscoll/da085586ce1f360fe08d295e7c6b3e82 to your computer and use it in GitHub Desktop.
var state = optimizely.get('state');
var string = state.getDecisionString({"campaignId":campaignId});
if (string) {
window.optimizelyMoat = window.optimizelyMoat || [];
window.optimizelyMoat.push(string);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment