How Do I Force a Specific Variation for an Experiment Based on Query Strings?

THIS ARTICLE WILL HELP YOU:

Force Specific Variations

All you need to do is grab the ID of both the experiment and also the variation that you want to force. You can do that as explained in this article.

After you have the two IDs handy you can build the query variable that needs to be added to the experiment URL:

_conv_eforce=[experiment_id].[variation_id] where [experiment_id] and [variation_id] will be replaced with actual values.

Example: http://www.mysite.com/test-page.html?_conv_eforce=123.678 where 123 is the experiment ID and 678 is the variation ID.


Important Important

Force Variation only works on Active experiences.

When forcing a variation, you must still match the Site Area and Audience conditions for this to work properly.

 

Tip Tip

Note that if you add this parameter twice to your URL, both parameters will be ignored. You might want to force 2 variations if you are, say, testing two experiments that run on the same page, and want to test them in combination with each other.  For instance, you might want to test Variation 1 of Experiment 1, and Variation 2 of Experiment 2 (or another order). In order to do this, open a fresh Incognito window, and load your first URL with the first eforce parameter. This will bucket you into the variation specified in the parameter. Then, in the same window, load your URL with the second eforce parameter.

Tip Tip

Forcing a variation is also handy when you have an experiment set to less than 100% traffic. It will force you to be bucketed in; whereas if you were to test normally, you have no control over whether you will be part of the percentage that randomly gets selected to be bucketed in.
Note that for this to work you must start out with a fresh incognito window, and then paste in your URL with the eforce parameter.  If you already triggered the experience and were chosen (excluded) as one of the visitors that will *not* see the experience, then eforce will not bucket you in after that.

 

keyword: force variation