@amplitude/experiment-tag
v0.20.0
Published
Amplitude Experiment Javascript Snippet
Keywords
Readme
Experiment Web Experimentation Javascript Snippet
Overview
This is the Web Experimentation SDK for Amplitude Experiment.
Generate example
To generate an example snippet with custom flag configurations:
- Set
apiKey(your Amplitude Project API key),initialFlagsandserverZoneinexample/build_example.js - Run
yarn buildto build minified UMDexperiment-tag.umd.jsand 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)
