Variation Code Not Running on Internet Explorer
Has anyone run into the following?
I have a test that includes IE, and when I go the targeted pages, it says the test is running (using optimizely.variationNamesMap i've confirmed the correct test and variation is running).
But none of my code is running. This is confirmed with my many many console.log lines.
I read that IE6 and IE7 is no longer supported, but even if this were the issue, shouldn't the Optimizely object not be present on my page at all?
Thanks for posting! Since we no longer support IE 6 and IE 7, tests you create won't run in those browsers. The experiments should not activate.
When I tested this in IE 6 and 7 on my end, I didn't see the tests running nor did I see the object defined. Could you possible post a screenshot of the object defined on your end? Also, are you testing this in IE 6 or 7?
Feel free to respond when you get a chance!
Now my question above is not necessarily directed at IE6,7, more than it is just figuring out if the IE deprecation has anything to do with the fact that my variation code isn't running (but the experiment is)
Does this help?
Thanks for following up. Since IE 6 and 7 are no longer supported, your variation code should no longer run in those browsers. Once the browser version is detected--say, IE 7--no experiments should activate.
When I test IE 6 and 7 on my end, I don't see the object defined at all. But as you mentioned, you're seeing it due to using IE 11.
I'm not sure if this is the article you read, but here is some additional information about the IE 6 and 7 deprecation:
Does this make sense? Let me know if you have any other questions about it.
But i also don't think the deprecation is the issue here considering that:
a) I'm using IE11
b) The optimizely object appears
a and b should happen, no?
The part that is troubling is why (given a and b), the variation code isn't running at all.
I have console.logs in many many places within the variation code to see if it hits any part of it, and no luck
This is a serious blocker for a test we plan on running, and IE is a large portion of the audience we are targeting.
And this message said: https://msdn.microsoft.com/query/dev12.query?appId=Dev12IDEF1&l=ES-ES&k=k(VS.WebClient.Help.SEC7118)
And this last message said: https://blogs.msdn.microsoft.com/ie/2012/02/09/cors-for-xhr-in-ie10/
Web Developer - Growth hacker