Skip to content

Instantly share code, notes, and snippets.

@strategyst
Created September 20, 2016 21:32
Show Gist options
  • Save strategyst/17031cda765f7c7a871d0ef273eb4afd to your computer and use it in GitHub Desktop.
Save strategyst/17031cda765f7c7a871d0ef273eb4afd to your computer and use it in GitHub Desktop.
<!-- Load the Content Experiment JavaScript API client for the experiment -->
<script src="//www.google-analytics.com/cx/api.js?experiment=YOUR_EXPERIMENT_ID"></script>
<script>
// Ask Google Analytics which variation to show the user.
var chosenVariation = cxApi.chooseVariation();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment