javascript - Content Experiment error - variation should be chosen before hit is sent to ga -
i'm trying set ga content experiment , see error in chrome console reads "variations should chosen before hit sent ga". error appears first time load page before cookies set. if clear cookies , reload, appears
it doesn't seem cause problems curious means. posted in google forums no 1 has explained it. here have ideas?
here's code
<script src="http://www.google-analytics.com/cx/api.js?experiment=lyhtgjicstgh0peyfma30w"></script> <script> var chosenvariation = cxapi.choosevariation(); var pagevariations = [ function() { $("#pdp_promo2").append($("#taginebanner")); $('#taginebanner').show(); }, function() { $("#banner").attr('src', '/wcsstore/cvweb/images/home/bnr_tagineb.jpg') $("#pdp_promo2").append($("#taginebanner")); $('taginebanner').show(); } ]; $(document).ready( pagevariations[chosenvariation] ); </script>
Comments
Post a Comment