npm-ab-testing
NPM package for A/B testing utilities and helpers.
Set Up
To use, run npm install @turnkevyr/ab-testing
and include the following entry in your config files:
Usage
To use on the client, you must pass in the Optimizely service url when instantiating a new instance of the object:
const client = new ClientABTesting({
optimizelyServiceUrl: '<ENVIRONMENT_ENDPOINT_HERE>',
});
const server = new ServerABTesting({
optimizelyServiceUrl: '<ENVIRONMENT_ENDPOINT_HERE>',
});