@optimizely/optimizely-sdk
Advanced tools
Changelog
[2.3.0] - November 14, 2018
attributes.$opt_experiment_bucket_map
, this more easily allows customers to do some async data fetching and ensure a user gets a specific variation.const userId = '123'
const expId = '456'
const variationId = '678'
const userAttributes = {
$opt_experiment_bucket_map: {
[expId]: {
variation_id: variationId
}
}
}
var selectedVariationKey = optimizelyClient.activate('experiment-1', userId, userAttributes);
Changelog
[2.2.0] - September 26, 2018
Changelog
[2.1.3] - August 21, 2018
window.optimizelySdk
rather than to window.optimizelyClient
. The old name still works, but on its first access a deprecation warning is logged to the console. The alias will be removed in the 3.0.0 release. (#152)