Rich-text Reply

Testing webpages behind a firewall (Integration development)

gcsfred1 06-03-15
Accepted Solution

Testing webpages behind a firewall (Integration development)

[ Edited ]

I'm developing an integration of Optimizely into an e-commerce platform. I integrated the snippet to the pages. I don't expect the online editor hosted by Optimizely to access my local development environment as it's behind the firewall - later on it should work with Production. My main question is if the snippet alone will allocate the users/requests to the buckets/variations in my local development environment behind the firewall. When I try to create an experiment, I get the error message "Sorry, but we were unable to load http://localdevserverwithport/store/ " which is understandable. However, is it necessary to create an experiment with a site on the Internet for Optimizely to start allocating requests to buckets/experiments/variations? How can I test the allocation of requests to different variations in my local development environment behind the firewall? I read

 https://help.optimizely.com/hc/en-us/articles/200040335  and I noticed that the optimizelyBuckets cookie for my domain is empty. Again, I have the snippet in my pages.

 

Thanks

Gustavo

 

Level 2

tomfuertes 06-03-15
 

Re: Testing webpages behind a firewall (Integration development)

Hey Gustavo,

 

The "Editor Url" and "Url Targeting" can differ! This means you can use a couple approaches:

 

1) If you need the editor to work, download ngrok and open up a public url to your //localdevserver/

 

2) If you don't need the editor, create the experiment w/ http://www.example.com or http://i.clrhd.me/splash.html 

 

Either way once you have it loaded / created you can start editing the code and use the force variation parameters on your local machine to activate the experiment.

 

Hope that helps! Post again if you have questions.

 

-Tom

____
- Tom Fuertes | CTO @ CROmetrics / LinkedIn
"Most Impactful Use of Personalization" and "Experience of the Year" Optie award winner.


Experimentation Hero
gcsfred1 06-03-15
 

Re: Testing webpages behind a firewall (Integration development)

Thanks, Tom,
In fact I noticed that I could only start the experiment after the URL resolved to some site. I changed the 'match' operator to a very general regex, something like http.+. I'm not sure if that also made a difference or not. In any case, after my experiment started, I could in fact see the optimizelyBuckets cookie in my local deployment behind the firewall.
Level 2