---
title: Javascript-SDK - 2.3.0
slug: feature-experimentation/release-notes/javascript-sdk-2-3-0
docTags: 
createdAt: 2026-07-20T15:45:30.585Z
---

\## \[2.3.0] - November 14, 2018

\### New Features
\* Allow sticky bucketing via passing in \`attributes.$opt\_experiment\_bucket\_map\`, this more easily allows customers to do some async data fetching and ensure a user gets a specific variation.

\`\`\`js
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);
\`\`\`

[https://github.com/optimizely/javascript-sdk/releases/tag/v2.3.0](https://github.com/optimizely/javascript-sdk/releases/tag/v2.3.0)
