Alpina
Search…
⌃K

Rollouts

Before you start

In order to use Rollouts you must first have our JS snippet on your pages. You can learn more about the integration process by clicking below:

Using rollouts

Make sure to go to your dashboard and create a rollouts feature first, you can do so by clicking here.
Now, copy the Feature ID and add the following code to your application:
const rollouts = AlpinaJSRollouts();
rollouts.isEnabled('YOUR_FEATURE_ID')
.then(function(result) {
if (result) {
// feature is enabled for the current user
// so you can make the feature available by adding your code here
} else {
// current user has been excluded from the pool
// generally, nothing needs to be done in this case
}
})
.catch(() => {
console.error('unable to fetch rollout state');
})
;
It's that simple. Don't forget to come back later and check the feature statistics in your dashboard.