nuxt-community / google-optimize-module

SSR friendly Google Optimize module for Nuxt.js
MIT License
215 stars 32 forks source link

variant weight means ... #2

Closed uptownhr closed 5 years ago

uptownhr commented 6 years ago

Just to confirm on what the variant weight values mean and how I can achieve a 50 / 50 split.

Would use weight of 1 on both of the variants in a two variant test be correct? Or should it be 0?

Sorry just the example and doc doesn't describe what / and how the weight should be used. It was also confusing that the default variant had a weight of 0.

pi0 commented 6 years ago

@uptownhr Hi and thanks for your interest. Actually, weights are relative. (We use weighted-random). Zero means disabled.

You can refer to the tests for reference: https://github.com/alibaba-aero/nuxt-google-optimize/blob/master/test/fixture/experiments/test1/index.js