color promo experiment

This commit is contained in:
Danny Coates 2017-12-05 14:06:40 -08:00
parent da4338ed69
commit b2c1daa6c7
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
8 changed files with 23 additions and 14 deletions

View file

@ -1,10 +1,10 @@
import hash from 'string-hash';
const experiments = {
'SyI-hI7gT9agiH-f3f0BYg': {
id: 'SyI-hI7gT9agiH-f3f0BYg',
XnN0idVWSxO6A0kiNkxzGw: {
id: 'XnN0idVWSxO6A0kiNkxzGw',
run: function(variant, state, emitter) {
state.promo = variant === 1 ? 'body' : 'header';
state.promo = variant === 1 ? 'blue' : 'grey';
emitter.emit('render');
},
eligible: function() {