Running an Experience during a scheduled time period

Run an Experience During a Scheduled Time Period

First, you will need to include the moment.js library into your project. You can do this by adding the following line into the Global Project Javascript. You can find this in the Settings area of your Project:

convert.$.getScript("", function(){

  console.log("moment.js has been included.");


Now include the following code as a Javascript Condition on your Audience:

moment().isBetween('2017-07-12 01:00:00', '2017-08-11 01:00:00');

Now modify the times on that code for the starting time and ending time of the experiment. 



Have more questions? Submit a request