Skip to main content

A/B testing

A/B testing is essentially an experiment where two or more variants of a page are shown to users at random, and statistical analysis is used to determine which variation performs better for a given conversion goal.

To configure A/B test variants, use abTestVariants config option. You can specify any string values there.

When the widget is rendered, one of the variants is chosen at random and saved in the localStorage as rnw_tamaro_ab_test_variant for the current user, so the same A/B test variant value will be used for all subsequent visits of the page. Then use abTestVariant() parser helper to get the value of this chosen variant in your conditionals.

When user makes a payment/donation, the chosen A/B test variant value is added into the payment object:

  • For EPP payments:

    {
    // ...
    stored_rnw_analytics_ab_test_variant: 'variant_a',
    }
  • For EPMS payments:

    {
    // ...
    raisenow_parameters: {
    // ...
    analytics: {
    // ...
    ab_test_variant: 'variant_a',
    },
    },
    }

Tamaro widget provides a mechanism to set A/B test variants and track them, but how to analyze the results is totally up to you.