Rich-text Reply

Custom javascript in variation

opti 05-11-16

Custom javascript in variation

Hello, 

can you help me, how adding custom javascript in the variation 1 to the head of the page

 

I have script: 

$(document).ready(function(){
yottlyTimeout();
});

I found article http://developers.optimizely.com/javascript/code-samples/index.html#helpers-external-js but I don´t have great javascript knowledge.

Thanks

 

Level 1

mkarmocha 05-11-16
 

Re: Custom javascript in variation

[ Edited ]

You can but as far as Optimizely suggests that if you are using variations then better use  code editor in optimizely for custom javascript.