@userdive/optimizely-x-plugin

a plugin to integrate Optimizely X A/B testing

Usage no npm install needed!

<script type="module">
  import userdiveOptimizelyXPlugin from 'https://cdn.skypack.dev/@userdive/optimizely-x-plugin';
</script>

README

@userdive/optimizely-x-plugin

Build Status styled with prettier

Build Status

Table of Contents

Install

npm install @userdive/optimizely-x-plugin

Usage

import Agent from "@userdive/agent";
import Plugin from "@userdive/optimizely-x-plugin";

const agent = new Agent("projectId", "auto");
agent.provide("optimizely", Plugin);
agent.require("optimizely");
agent.run("optimizely", "getVariation");

Contribute

PRs accepted. join us

License

GPLv3. Full license text is available in LICENSE