Reputation: 21449
So I have my app running on my local server, I am trying to a/b test the feature with Visual Website Optimizer.
I put the server address(publicly not available) in the preview URL, but when I open the preview page, it gives a warning saying "Error: Cookie could not be set.". Cookies are enabled.
My question is, should the preview page (or default campaign url) be publicly reachable for VWO to work properly?
Upvotes: 0
Views: 1623
Reputation: 3677
In order to run the VWO on localhost, you just need to make a small adjustment to the /etc/hosts file. Just add "localhost.com" at the end of the line that says "127.0.0.1 localhost"
Now you can run the VWO on any URL that starts with http://localhost.com.
Upvotes: 3
Reputation: 7636
This is probably because you are opening your website as an html file in your file system. You can host your static website locally with HarpJS. Install it through npm
npm install -g harp
Go to the root dir of your site and run harp server
. Now you'll be able to open your site on http://localhost:9000
Also I have written an article how to easier develop experiments for Optimizely/VWO usage http://bit.ly/1C4vtSA
Upvotes: 0
Reputation: 7091
The URL of the page should be publicly reachable only for Screenshots of the variations. Live previews should work even if the URL is accessible only locally. Though you should use a valid URL i.e. a URL having a valid domain name and TLD.
For any other info / debugging I would request you to send a mail to support (at) wingify (dot) com if not already done so that an exact solution can be shared.
Upvotes: 0