Google Analytics - multiple tests
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.
Solutions Architect | Optimizely, Inc.
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', ...).)