@attraqt/ab-test
Installation and Usage
npm install --save @attraqt/ab-test
import {drawAbTestVariationForUser} from @attraqt/ab-test
drawAbTestVariationForUser("31d814b3-ee4a-401e-80dc-77efbfa431fa", {
id: "homepage-ab-test",
variations: [{
id: "a",
weight: 50
}, {
id: "b",
weight: 50
}]
});
Methods
Method | Argument(s) | Result | Description |
---|---|---|---|
drawAbTestVariationForUser | options: AbTest
|
string |
Draws a variation for the given user id |