How It Works

How A/B Testing Works — Live in 5 Minutes

Three steps to data-driven decisions. One line of code, and you're testing.

Step 01

Add the snippet

Copy one line of code into your website's <head>. That's it. Works with any HTML page, WordPress, Shopify, Next.js, Nuxt, or any other framework.

<!-- Otter A/B Testing -->
<style id="optimo-hide">body{opacity:0 !important}</style>
<script src="https://www.otterab.com/sdk/optimo.js"
  key="YOUR_API_KEY" async></script>
Step 02

Create your test

Name your test, set the target URL, and define your variants. Add DOM changes — swap headlines, images, buttons, or entire sections. Set your conversion goals: page views, clicks, custom events, or revenue.

  • Define multiple variants with different weights
  • 10 DOM change types: text, HTML, attributes, styles, classes, and more
  • 4 goal types: pageview, click, custom event, revenue
Step 03

Get results

Visitors are automatically assigned to variants using our deterministic algorithm. Conversions are tracked in real-time. Choose frequentist or Bayesian analysis, and Otter will surface the right decision score, lift, and winner status for the method you selected.

Works with any stack

Drop in the snippet and you're live.

Custom JavaScriptShopifyWordPressWebflowWixWooCommerceClickFunnelsSquarespaceFramerNext.jsGoogle Tag Manager

Ready to run your first test?

14-day free trial. No credit card required.