For a front-end experiment with N variations, Google Optimize splits 1/N of the traffic on each variation by default. However in the UI it's possible to customize these weights.
In server-side, it expects the server to apply the same weighting.
There is no API to retrieve the weighting configured in Google Optimize.
Goal
In declare_experiment(), allow setting the weights of the variations:
Context
For a front-end experiment with N variations, Google Optimize splits 1/N of the traffic on each variation by default. However in the UI it's possible to customize these weights.
In server-side, it expects the server to apply the same weighting.
There is no API to retrieve the weighting configured in Google Optimize.
Goal
In
declare_experiment()
, allow setting the weights of the variations:The default weight of a variation is
1 / number of variations
and in any case, the sum of weights must equal 1.When assigning a user to a random variation, do a weighted random pick.