Skip to main content
A/B Testing Set-Up & Report

How do I set up A/B testing with Klar and what insights can I gain from it

Marc Garbella avatar
Written by Marc Garbella
Updated over 3 weeks ago

tl;dr

  • You can now use Klar to analyze your A/B Testing results.​

  • With this report, you'll be able to evaluate how many orders each test is driving and the Customer Lifetime Values (CLVs) of the customers acquired through these tests.​

  • This feature enhances Klar's existing insights into your cost structure and customer retention by integrating them with your A/B Testing results.

Integration

ABLyft

If you use ABlyft, simply select the Klar integration under 'Default Integrations.' By doing so, all events sent to ABlyft will automatically be shared with Klar—no additional setup required.

All other tools

You can easily integrate other tools by sending the A/B Test information to our pixel. Here's how:

  • Pixel Using Shopify Customer Events:

    Shopify.analytics.publish("Klar:sendUpdateABGroupEvent", { projectName: "AB1", variantName: "V1", experimentName: "E2" })
  • Shopify Webpixel Sandbox

    api.analytics.publish("Klar:sendUpdateABGroupEvent", { projectName: "AB1", variantName: "V1", experimentName: "E2" })
  • All other Pixel implementations

    window._k_q = window._k_q || [];

    window._k_q.push(["Klar:sendUpdateABGroupEvent", {

    projectName: "AB1", variantName: "V1", experimentName: "E2"

    }]);

Fields you need to pass

  • projectName

    • String value is expected here

    • The name of your project (e.g. ‘Product Page’), think of this as an over-category for your experiments

  • experimentName

    • String value is expected here

    • The name of your experiment (e.g. ‘Prominent Price Reduction Display’)

  • variantName

    • String value is expected here

    • The name of the variant here (e.g. ‘Control’ or ‘Variant 1’)

How the reporting works

You can view your A/B Test results across three dimensions: Project Name, Experiment Name, and Variant Name.

  • Drill-Down Functionality:

    • Clicking on a Project Name drills down to the Experiment Name level, showing all experiments within that project.

    • Similarly, clicking on an Experiment Name drills down to the Variant Name level, displaying all variants within that experiment.

  • Flexibility: You can switch between these levels without needing to drill down sequentially.

Good-to-Know

  • A customer can be a part of multiple experiments, but can only be part of one variant per experiment

  • If a customer is part of multiple variants inside an experiment, we'll allocate the order to the one closest to the order date

Did this answer your question?