Optimize
5.6K members online now
5.6K 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

Show AB-test variation based on session

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi, 

 

We have an AB-test, where we test the height of the header image. At the moment, the test fires on pageload, which causes that when a visitor goes to another page the height of the banner is decided again. So the visitor could go from big to small header image. 

Is there a way to get that the AB-test variation is decided for the whole session? So the visitors will always see the same header height?

 

Kind regards

 

Isa

Show AB-test variation based on session

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

I'm also looking for an answer for something like this, although this is a sub-navigation (under the main navigation) test that moves from the top of the page to the side of the page. We want a user who sees option A on one page to keep seeing option A as they progress through the pages of a certain section of the site. 

 

Thanks

Show AB-test variation based on session

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Perhaps populate your Datalayer with a random session value (a or b) then use this to target 50% of your variant?