Optimize
4.7K members online now
4.7K members online now
Discover how to select who is eligible to be in your experiment, and when they’re served experiment variations.
Guide Me
star_border
Reply

Google Optimise Based On Time Of Day

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Is it possible to have Google Optimise to show version 1 and version 2 at specific times of the day ?

1 Expert replyverified_user

Google Optimise Based On Time Of Day

Google Employee
# 2
Google Employee

Yes, you can do this by creating a custom javascript variable (see rules under targeting tab).

For example you create a custom javascript variable named hourOfDay with implementation:

function() {

  return (new Date()).getHours();

}

 

and then add restrictions based on that variable like for example

 

hourOfDay > 12

and

hourOfDay < 18

 

For more: https://support.google.com/360suite/optimize/answer/6301785