You choose the ‘mode of experiment activation’ at your convenience in the web application. In A/B Testing, once you create an experiment, you may want to activate it later instead of activating it at the time of page load. This is true when the page with more dynamic elements and AJAX requests need testing. 

ARTICLE NAVIGATION

To address this situation, the web application provides a solution in the form of Activation Mode to help you define ‘when’ to activate an experiment.

 


The Activation Mode option will be available in the preflight stage of the experiment and users can choose the specific mode that suits their necessity.

Activate on Page load

By default, all the experiments have “Activate on Page Load” as the activation mode, which means, the experiment gets activated on the page load.

Activate Manually

Choosing the Activate Manually mode will generate the web application's JavaScript activation API that will be included in a significant part of your site’s code for experiment activation.

Some scenarios where Manual activation mode can come in handy are,

  • A web page where the experiment needs to be manually activated at some point of time after the page load.

  • You prefer employing manual code to activate the experiment so that it gives you more control over the site.

Activate on a Condition

Choosing Activate on a Condition mode allows you to enter the condition code, which is then used by the web application to evaluate and to activate the experiment accordingly. In this mode, The web application checks the condition code for every 50 milliseconds and activates the experiment when the condition is satisfied.

Some scenarios where Condition activation mode can come in handy are,

  • Your site has an AJAX request that comes after a specific time from the completion of page load and the request returns new elements that need to be changed.

  • You have a site that demands a customary action from the users before starting the experiment.

  • You have a site where you want to activate the experiment depending on the event triggered by a single page application framework (Meteor,js, Ember.js or Angular.js).

You can either use a conditional statement or a function to trigger the experiment in the Activate on a Condition mode.

Using Statement :

The following screenshot gives you an example of the Activate on a Condition mode, using a statement.

Using Function :

The following screenshot gives you an example of the Activate on a Condition mode, using a function.

 

With the help of different Activation modes that the web application provides, you can choose the necessary mode suitable for the type of experiment you want to run.