Force Variation

Forcing a Visitor into a specific Variation

An assignment can be made as an event via the API.

The variant for an experiment must be determined before the experiment is initialized for the first time for the user. (More specific: before the "Audience Check")
This is the case if Audiences and Pages are valid.
The call to the API can also be made before the integration of ABlyft, but also later, if the experiment has not yet been initialized (before Variation Bucketing).

The call specifies the ID of the experiment and the variant.

window['ablyft'] = window['ablyft'] || [];
window['ablyft'].push({
    eventType: 'forceVariation',
    experimentId: 12345678,
    variationId: 98765432
});