Run multiple simultaneous tests with Google Content Experiments API
I'm trying to use Google Content Experiments API to run several A/B tests simultaneously in the same page (similar to a multivariate test). I've tried just putting all the recommended code for each test one after another, like this: <script src="//www.google-analytics.com/cx/api.js?experiment=8RsNt4b7T0aE8RC2s9R3IA">/script> <script> var chosenVariation = cxApi.chooseVariation(); var pageVariations = [ function() {}, function() { $(".block1").hide(); }, ]; $(document).ready( pageVariations[chosenVariation] ); </script> <script src="//www.google-analytics.com/cx/api.js?experiment=T3m