Rich-text Reply
Highlighted

how to change position in optimizely using java script

sirisha 04-20-17

how to change position in optimizely using java script

We have an instance where we are trying to change the color and positon of one of our widgets, which is actually in a list, we tried using optimizely positon controls and found that it is moving it on top of one another instead of before as we want. Also when we try to move the code of the list element using html, it just takes us to the same page irrespective of what we click on the website. Have anyone of you faced a similar situation and can we know what we are missing to pay attention to?
any help will be appreciated.

thanks.

Level 1

JasonDahlin 04-21-17
 

Re: how to change position in optimizely using java script

If you work out how to make the changes using your browser's console (using jQuery or javascript), you can usually use that same code in the experiment (if you are using any jQuery methods that are not in the version of jQuery that you have included in the snippet, you will need/want to change "$" to "window.$" so that the experiment runs your site's version of jQuery.
--Jason Dahlin
Analytics and Testing Guru Smiley Happy
Experimentation Hero