@amplitude/experiment-tag
v0.2.2
Published
Amplitude Experiment Javascript Snippet
Downloads
213
Maintainers
Keywords
Readme
Experiment Web Experimentation Javascript Snippet
Overview
This is the Web Experimentation SDK for Amplitude Experiment. Currently, only split-URL experiments are supported.
Generate example
To generate an example snippet with custom flag configurations:
- Set
apiKey
(your Amplitude Project API key) andinitialFlags
inexample/build_example.js
- Run
yarn build
to build minified UMDexperiment-tag.umd.js
and examplescript.js
To test the snippet's behavior on web pages relevant to your experiment, the pages should:
- Include
script.js
- Have the Amplitude Analytics SDK loaded (see examples)