Get and Set Bucketing

Get Bucketing via Tools

If you want to get the bucketing (i.e. which experiment and variant a user is in) in the syntax ["EXPERIMENTID_VARATIONID"], the following function is available.
So it can be used as value for setting via URL parameter.

var ablyftTools = window.ablyft.getTools();
ablyftTools.getSetBucketingUrlExtension();

Set Bucketing via URL Parameter

It is possible to set (override) the bucketing (i.e. which experiment and variant a user is in) via a URL parameter.

?ablyft_set_bucketing=["70196580_62929571","79933427_10208099"]

Here "70196580_62929571" is a pair of the Experiment ID = 70196580 and the Variation ID = 62929571.