The power to choose the mode of experiment activation at your convenience.

In A/B Testing, once you create the experiment, you might want to activate it at a later point of time instead of activating it at the time of page load. This can happen when the page with more dynamic elements and AJAX requests needs to be tested. To address this situation, Freshmarketer provides a solution in the form of Activation Mode that can help you define when to activate an experiment.


"Activation Mode" in Summary Tab

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.

There are three options under Activation Mode namely,

  • Activate on Page load
  • Activate Manually
  • Activate on a Condition

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 Activate Manually mode will generate a Freshmarketer JavaScript Activation API that needs to be included at the significant part of your site’s code to activate the experiment.


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.

Activation Mode : Manual

Activate on a Condition

Choosing Activate on a Condition mode allows you to enter the condition code, which is then used by Freshmarketer to evaluate and to activate the experiment accordingly. In this mode, Freshmarketer 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 needs to be changed.
  • You have a site which 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 Activate on a Condition mode.

Using Statement :

Activation Mode : On a Condition (Using Statement)

Using Function :

Activation Mode : On a Condition (Using Function)

Hence, with the help of different Activation mode that Freshmarketer provides, you can choose the necessary mode suitable for the type of experiment you want to run.

Technical Support
Don't see what you're looking for? Just drop us a mail