This is the Web Experimentation SDK for Amplitude Experiment.
To generate an example snippet with custom flag configurations:
- Set
apiKey
(your Amplitude Project API key),initialFlags
andserverZone
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)