Get Variant
null if the experiment is not found, not running, or the user is not in the target audience.
Module Access
Module Methods
Exposure Tracking
Automatic (Default)
The SDK tracks anexperiment_exposure event once per session the first time getVariant() is called for a given experiment.
Manual
Disable automatic tracking and track when the UI is actually visible:Listen for Assignment Changes
Assignment changes are rare. They occur only when the experiment definition changes on the server, not on every session start.
Experiment Lifecycle
Full Example
Experiments are created in the Console under Experiments. The SDK uses MurmurHash3 for deterministic assignment — the same user always gets the same variant across sessions, platforms, and offline.

