Rich-text Reply

Google Analytics - multiple tests

bwhgiving 10-16-14

Google Analytics - multiple tests

Have multiple tests running on optimizely, not able to track any ecommerce data. does something need to replace 'SOME_DIMENSION_VALUE' in the code below? // Optimizely Universal Analytics Integration window.optimizely = window.optimizely || []; window.optimizely.push("activateUniversalAnalytics"); var dimensionValue = 'SOME_DIMENSION_VALUE'; ga('set', 'dimension1', 9); var dimensionValue = 'SOME_DIMENSION_VALUE'; ga('set', 'dimension3', 10); var dimensionValue = 'SOME_DIMENSION_VALUE'; ga('set', 'dimension4', 11);
MartijnSch 10-17-14
 

Re: Google Analytics - multiple tests

Hi, we probably need a bit more explanation here. What are you trying to achieve and trying to save in Google Analytics? You definitely need to change something here ;-)

Re: Google Analytics - multiple tests

[ Edited ]

Hi @bwhgiving,

 

It appears you are using custom dimension as part of your Universal Analytics integration.  The code you've highlighted below should likely stem from how you define custom dimensions and report on them within your UA account.  This Optimizely Knowledge Base article gives you some guidance in this area.

 

As @MartijnSch mentions, we still probably need a bit more gudiance as to what you are trying to achieve and where/how this code is being integrated on your site.  Depending on how deep the discussion needs to go, we can open a Support case for you.

 

Harrison Krat
Solutions Architect | Optimizely, Inc.
harrison@optimizely.com
 
greg 10-22-14
 

Re: Google Analytics - multiple tests

Since you're specifying the dimension index within the ga() function itself, there's no need to use the dimensionValue variable.

Then you want to make sure the dimension indices you're using are correct. Check the Index value of your custom dimensions within the Google Analytics admin panel.

Finally, it's not enough to set the dimensions - you need to send those data to Google Analytics. After you've set the dimensions, make sure there's a ga('send', ...) function being triggered somewhere after the dimension values have been set. (Also remember that the dimension values need to be set *after* a tracking object has been created, using ga('create', ...).)
Level 2