Testing webpages behind a firewall (Integration development)
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.
Solved! Go to Solution.
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/
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 Fuertes | CTO @ CROmetrics / LinkedIn
"Most Impactful Use of Personalization" and "Experience of the Year" Optie award winner.
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.