A/B Testing

While Feature Flags is not explictily an A/B testing add-on, it could be used as such. If a feature flag has the "Percent Variant" option set to 50%, and you update the template tag to use an else conditional you can run an A/B test. The only caveat is that you can't run multi-variant tests since a feature flag only has 2 states, on and off.

{if feature:your_ab_test_name}
    Show A
{if:else}
    Show B
{/if}

When using a "Percent Variant", the user is cookied to that flag, so they will continue to see the original or variant upon subsequent page requests if you use the same conditional in mulitple places.

Last updated

Was this helpful?