Rich-text Reply

Target URL leads to 404 error, but works on actual site

narrowandy 12-14-15

Target URL leads to 404 error, but works on actual site

Hi there.

 

I'm trying to set up experiments for a couple products on an ecommerce website, but everytime I enter the URL for a specific product in the "URL Targetting" field, the page shows up as a 404 error. I've tried using exact & simple match and the 404 consistently appears. I double checked that the URL link actually works on the live site and it does.

 

Here are the links I'm trying to run tests on:

 

http://goneshopping.ca/product/brand/klean-kanteen/black-eclipse-40oz.html

&

http://goneshopping.ca/product/brand/bleu-for-t/women-s-socks/velvet-combed-cotton-kneehighs-black.h...

 

(FYI, when I plug in the home page to the "URL Targetting" field, the content on the page appears, so it's not a problem with the actual site).

 

Any ideas why this is happening?

robertchan 12-15-15
 

Re: Target URL leads to 404 error, but works on actual site

What is the experiment ID? Have you tried forcing the variant you're attempting to preview as follows?

http://YOURURL/?optimizely_xYOUREXPERIMENTID=YOURVARIANTNUMBERSTARTINGONANINDEXOF0

Might also be an issue with something in your head:

<html xmlns="http://www.w3.org/1999/xhtml" class="no-js" dir="ltr" lang="en" xml:lang="en">

<head profile="http://gmpg.org/xfn/11">
Robert Chan

Experimentation Hero

Re: Target URL leads to 404 error, but works on actual site

Hey There,

It sounds like you are running into these issues within the Optimizely Editor, is that correct? In order to load your page in the Optimizely editor, there are two primary things that Optimizely needs to be able to do with the page:

 

1. Load the page within an iFrame
2. Add Query parameters to the page

 

In this case it appears that this site will show a 404-type page if there are any query parameters added to the URL. You should be able to reproduce this by going to http://goneshopping.ca/product/brand/klean-kanteen/black-eclipse-40oz.html?test=true

 

In order for this page to be able to load in the editor, it will need to allow additional parameters to be added to the page. If you or a colleague would like to see the exact parameters that Optimizely is using you can do so by viewing the Optimizely Loader object in the browser console after the editor page has loaded.

 

Loader Object.jpg

 

 

The article below has some additional information on other possible Editor loading issues with Optimizely as well.

https://help.optimizely.com/hc/en-us/articles/200179074-Troubleshooting-Pages-not-loading-in-the-Edi...

narrowandy2 12-22-15
 

Re: Target URL leads to 404 error, but works on actual site

Hi Danny,

 

 Thanks for your help. We're still struggling with setting this up though. We're using 'Opencart' and it seems to be adding .html automatically.

 

Do you have any suggestions or plugins that we can download to fix this error? 

 

Thanks!