Alpina
Search…
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:
1
const rollouts = AlpinaJSRollouts();
2
3
rollouts.isEnabled('YOUR_FEATURE_ID')
4
.then(function(result) {
5
if (result) {
6
// feature is enabled for the current user
7
// so you can make the feature available by adding your code here
8
} else {
9
// current user has been excluded from the pool
10
// generally, nothing needs to be done in this case
11
}
12
})
13
.catch(() => {
14
console.error('unable to fetch rollout state');
15
})
16
;
Copied!
It's that simple. Don't forget to come back later and check the feature statistics in your dashboard.
Last modified 1yr ago