Rich-text Reply

Optimizely not showing Variation

imtiazshams 04-27-16

Optimizely not showing Variation

Hi guys,

My optimizely experiment is showing as "loaded", when you look at the website or through my Optimizely viewer, however no one seems to see it. I think it is because I am using a Themify template. I tried to "force" it using the Javascript code but that did not work.

 

The only difference between Variation 1 and the Original is currently a different image. As you can see, it is currently running, however not showing. 

robertchan 04-27-16
 

Re: Optimizely not showing Variation

I don't think you shared the link with us. There are a few things that may be causing your issue. You might have your IP filter set incorrectly in your settings. You might have the wrong code snippet for your project implemented into the page. Finally, you might have JavaScript code shooting off prematurely in which case you should do a window.onload.
Robert Chan

imtiazshams 05-05-16
 

Re: Optimizely not showing Variation

Hey, thanks! The website is www.efridgemagnet.com. as you can see, the variation is loaded but not showing.
JasonDahlin 05-05-16
 

Re: Optimizely not showing Variation

[ Edited ]

@imtiazshams - you are updating the "src" attribute but not the "srcset" attribute which is causing your change to not actually accomplish anything.  

 

Try like this (I had to change $ to jQuery to get it to run in the console):

jQuery(".wp-image-4634").attr({"src":"//cdn.optimizely.com/img/5730750723/3da8be5a9d5f433cbd21a4f535d93916.png"}).attr('srcset',''); 
jQuery(".wp-image-4635").attr({"src":"//cdn.optimizely.com/img/5730750723/f50f6c46ba2740cbb5af04332f4e5174.png"}).attr('srcset','');

 

--Jason Dahlin
Analytics and Testing Guru Smiley Happy
imtiazshams 05-07-16
 

Re: Optimizely not showing Variation

Pardon my noobness, is this what you mean I should do? (this is in the Variation 1 Javascript box):

Screen Shot 2016-05-07 at 09.25.02.png