Rich-text Reply

Optimizely Code Snippet Stopped Working

hiramcruz 01-20-17

Optimizely Code Snippet Stopped Working

Hi, our Optimizely code snippet has been installed in the <head> of our website for a few years now but i'm still getting an error saying we need to install it (see screenshot here: http://prnt.sc/dxvv7q).
 
Here's the landing pages we're trying to AB Test
 
 
You can see in the source code lines 160-163 of those landing pages that the snippet is installed. 
 
Any ideas what's going on?
 
  
Appreciate your feedback, 
 
- Hiram
 
 
 

 

 

Re: Optimizely Code Snippet Stopped Working

[ Edited ]

Optimizely recommend to install the snippet as high up in the head tag as possible, generally after the<html> tag, charset declarations, and possibly other meta tags. Add the snippet before the code for any analytics or heatmapping platforms as well.

Place these before the snippet:

Charset declarations and other meta tags, like <meta charset='utf-8'>
jQuery, if you're using your own version and not Optimizely's version (see jQuery Settings)
Any information that Optimizely must use for targeting experiments, such as custom tags

 

Place these after the snippet:

All other elements on your page
Any analytics or heatmapping code
Other content in a tag manager

 

I always paste the code manually, If you are using WordPress plugin for Optimizely keep in mind, sometimes does not work correctly.

 

SEO and CRO Specialist
hiramcruz 01-20-17
 

Re: Optimizely Code Snippet Stopped Working

Thanks for your response. I went ahead and placed the optimizely code snippet higher up on the head section-- right after <meta charset="UTF-8" />. But it's still giving us the same error saying we need to install the snippet.

You can see the snippet in the source code here: http://www.cpcstrategy.com/brand-policing-best-practices-for-amazon-sellers-guide/

We've been using the same optimizely code snippet in the past for ~2 years and have successfully ran numerous tests, our latest test was in October 2016. Any ideas why it would stop functioning?

Thanks

Re: Optimizely Code Snippet Stopped Working

Everything seems to be OK.
So at this point, the problem could be your experiment configuration or a problem of Optimizely.
In both cases, you need to scale it to tech support.
Before, you can try duplicating the experiment and see what happens.
Check your script maybe you're using a script from another project. (remember a project for each URL)
Check your Implementation settings, uncheck or drop off all the integration plugins
Check the javascript tab maybe there is problem right there
Try to edit your experiment changing the URLs
example from mywebsite.com/variation-1/ to mywebsite.com/variation-1.0/
SEO and CRO Specialist

Re: Optimizely Code Snippet Stopped Working

let me know if you have success
SEO and CRO Specialist
hiramcruz 01-21-17
 

Re: Optimizely Code Snippet Stopped Working

Thanks. I've tried different URLs already to no avail. All my integrations are set to OFF, script is correct for the right project, and my javascript is set to:

- Include trimmed jQuery (1.11.3) in project code (recommended)

I believe I am running jquery 1.11.3 on our website. Still not sure what could be the issue, the Optimizely Dashboard is showing me that my test is tracking visitors-- but it's not splitting traffic, it's a simple Re-Direct AB Test.




Re: Optimizely Code Snippet Stopped Working

At this point, you don't have too many options.
Scale it to tech support. I pretty sure they can help you.
SEO and CRO Specialist
Jason-GSell 01-23-17
 

Re: Optimizely Code Snippet Stopped Working

Hi Hiram,

I'm a member of the Optimizely Customer Success team. When I go to http://www.cpcstrategy.com/brand-policing-best-practices-for-amazon-sellers-guide/, I see that the experiment LP Guide Pop-Up Test is running. Is that the experiment you're referring to? If so, are you continuing to see the error message in the Optimizely editor?
If this solved your question, please accept it as a solution!
Optimizely
hiramcruz 01-23-17
 

Re: Optimizely Code Snippet Stopped Working

Hi Jason, yes LP Guide Pop-Up Test is the experiment I am referring to.

Strange, I am seeing the landing page (http://www.cpcstrategy.com/brand-policing-best-practices-for-amazon-sellers-guide/) redirect me now to the appropriate variation URL-- it wasn't doing that a few nights ago.

Just to check on my end, I went ahead and paused the experiment and then re-started it. I still get the same error message saying the pixel isn't installed soon after I hit "start experiment". However, the test seems to be running and redirecting the URLs as it should. Any idea why I'm seeing the error message when I start my experiment?

ToddSeller 01-23-17
 

Re: Optimizely Code Snippet Stopped Working

Hiram,

I am going to open a support ticket for this issue so I can better help diagnose this issue.
Todd Seller

Platform Certified
Optimizely
hiramcruz 01-23-17
 

Re: Optimizely Code Snippet Stopped Working

Thank you Todd.