This article describes the sequence that ABlyft goes through before a variant is played out to a visitor.

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 at the user.
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
});

 

Did this answer your question?