All docs
1 min read

A/B testing

Set ab_test_config.enabled = true and provide a variants array (each with key and weight). Variant assignment is a deterministic hash of (funnel_id, visitor_id), weighted by the configured splits. The same visitor on the same funnel always lands on the same variant — no cross-tab drift.

Screens with an ab_variant_key only render to matching variants. Screens without one are shared across variants.