Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Way to whitelist Optimizely (AB Testing) for IFrame / X-Frame-Options Rate Topic   - - - - -

 
  • novista
  • Senior Member
  • Members
  • Join Date: 14-Jul 11
  • 199 posts

Posted 29 May 2013 - 08:27 PM #1

Hello,

I am trying to run A/B tests using Optimizely. The page I want to test is the view cart page. To set this up, I need to allow Optimizely to see the cart in an IFrame on their site. This currently cannot be done because according to Optimizely support, "X-Frame-Options" in CS Cart is set to "sameorigin".

They are saying

"Optimizely.com needs to be whitelisted so we can load your page correctly in the (Optimizely) editor, currently it is being loaded via proxy which doesn't have the session info."


Because the session info cannot be loaded, it is not possible to add anything to the cart in the Optimizely editor and therefore, the Proceed to Checkout button does not show.

This is a bit beyond my abilities. Is what they are saying possible and if so, can you give instructions on how to do it?

Thanks.

 
  • m33
  • Member
  • Members
  • Join Date: 05-Dec 11
  • 37 posts

Posted 27 June 2013 - 12:40 AM #2

Hey Novista,

Not sure if you've given up on this or not, but we experienced the same issue when trying to access the in-page data collected by Google Analytics.

X-Frame is actually your friend and the overriding recommendation is to keep the setting at "sameorigin" in the prepare.php file. There is an option to "ALLOW-FROM uri", but you might want to talk to your analytics vendor about their recommendations for this if there isn't a means (like there is in GA) to view the heat map and data on the live site instead of the analytics vendor's frame.

Not knowing how much research you've done independently, here's a blog post from last September that might help you understand the implications of removing or changing the settings for the x-frame - http://blog.wirhaben...-frame-options/.

Again, the best thing your analytics provider can give you is a means of viewing the in-page data on the live site as opposed to inside a frame in their analytics dashboard.

-M

 
  • novista
  • Senior Member
  • Members
  • Join Date: 14-Jul 11
  • 199 posts

Posted 27 June 2013 - 01:44 PM #3

Yes, I was able to get past it by changing the 'x-frame' settings. The good news is that I only needed to make that change during the set up of my test which only took a few minutes. Once the test was running I was able to set it back to 'sameorigin'.