Rich-text Reply

optimizely even not firing on ie9

alokthuse 11-04-15

optimizely even not firing on ie9

I am trying to inject some code into javascript experiment. The code in the javascript experiment is overriding a function on the main page. I can see the events getting fired on safari and chrome. But this does not work for ie. 



window.isEnabled = function(){
    window['optimizely'] = window['optimizely'] || [];
    var redirectUrl = "xxx.jhtml";
    if (condition is true) {
           alert ('firing optimizely event');
        window.optimizely.push(["trackEvent", "enableConversion"]);

Any help will begreatly appreciated.




Re: optimizely even not firing on ie9

Hi @alokthuse, thanks for the question!


Taking a look at your code, it certainly seems like this should run in IE9 if the following "condition" variable is defined.


condition is true

Would you be able to elaborate on where that variable is coming from?


Looking forward to helping get everything up and running smoothly for you! Thanks!