optimizely

Get visitor's Optimizely A/B test and variation

家住魔仙堡 提交于 2019-12-20 10:34:29
问题 When I run an experiment on my website, I want to be able to find out which test and variation the current visitor sees. I can't find how to do this from the Optimizely Javascript API. 回答1: You can get the ID of the first running experiment (assuming you have one), and then the variation index (e.g., 0, 1, 2), name, and ID: var experimentID = window['optimizely'].data.state.activeExperiments[0]; var variationIndex = window['optimizely'].data.state.variationMap[experimentID]; var variationName

How does Optimizely & Visual Website Optimizer handle visual DOM editing?

天涯浪子 提交于 2019-11-27 17:44:51
Optimizely & Visual Website Optimizer are two cool sites that allow users to perform simple A/B Testing. One of the coolest things they do is visual DOM editing. You can visually manipulate a webpage and save the changes offline. The changes are then applied during a random visitor page view via a JS load. How do the visual editors work? My name is Pete Koomen, and I'm one of the co-founders of Optimizely, so I can speak for how things work on our side. Let's say you want to create an experiment on http://www.mypage.com . You might (this is optional) start by adding your Optimizely account

How does Optimizely & Visual Website Optimizer handle visual DOM editing?

…衆ロ難τιáo~ 提交于 2019-11-27 04:13:35
问题 Optimizely & Visual Website Optimizer are two cool sites that allow users to perform simple A/B Testing. One of the coolest things they do is visual DOM editing. You can visually manipulate a webpage and save the changes offline. The changes are then applied during a random visitor page view via a JS load. How do the visual editors work? 回答1: My name is Pete Koomen, and I'm one of the co-founders of Optimizely, so I can speak for how things work on our side. Let's say you want to create an

How to change the HTML content as it's loading on the page

我与影子孤独终老i 提交于 2019-11-27 02:15:35
I do A/B Testing on our site and I do most of my work is in a JS file that is loaded at the top of the page before anything else is rendered but after jQuery has loaded which comes in handy at times. Taking a very simple example of changing an H1 tag, I would normally inject a style in the head to set the H1 opacity to 0 and then on DOMContentLoaded, I would manipulate the H1 contents and then set the opacity to 1. The reason for this is to avoid a flash of the old content before the change takes place - hiding the whole object is more graceful on the eye. I've started to look at the

How to change the HTML content as it's loading on the page

為{幸葍}努か 提交于 2019-11-26 07:48:57
问题 I do A/B Testing on our site and I do most of my work is in a JS file that is loaded at the top of the page before anything else is rendered but after jQuery has loaded which comes in handy at times. Taking a very simple example of changing an H1 tag, I would normally inject a style in the head to set the H1 opacity to 0 and then on DOMContentLoaded, I would manipulate the H1 contents and then set the opacity to 1. The reason for this is to avoid a flash of the old content before the change