How it works
Paste one line. Run a real test. See what it earned.
That is how A/B testing works in Otter: install a snippet, build variants without touching code, then watch conversion rate and revenue per visitor land on a live dashboard. Most teams have their first split test running inside five minutes.
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 -->
<style id="optimo-hide">body{opacity:0 !important}</style>
<script src="https://www.otterab.com/sdk/optimo.js"
key="YOUR_API_KEY" async></script>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
Get results
Visitors are assigned deterministically and conversions are tracked in real time — including revenue, average order value, and revenue per visitor. Choose frequentist or Bayesian analysis, and Otter surfaces the right decision score, lift, and winner status for the method you picked.
Under the hood
What happens between a visit and a decision
A reliable A/B test depends on four things working together: a fast SDK, a stable variant assignment, a goal that maps to revenue or behaviour, and a statistical decision that actually means something. Here is how each piece fits.
Step 1
The SDK loads early and hides the page briefly
Step 2
Visitors are assigned deterministically
Step 3
Goals connect to revenue, not vanity
Step 4
The decision uses the right math for the test
Setting expectations
When A/B testing pays off — and when it doesn't
Testing is a decision tool, not a religion. Knowing when to skip it is what keeps the results you do get worth trusting.
Good fit
A/B testing is the right tool when
- You have enough traffic to detect the lift you care about — typically a few thousand conversions per variant.
- The change you are testing is meaningful enough that a 5–20% lift is plausible.
- The decision is reversible and the cost of being wrong is low.
- You care about a measurable outcome — conversion, revenue, retention — more than a qualitative feeling.
Poor fit
A/B testing is the wrong tool when
- Your traffic is too small for the effect you can detect in a reasonable timeframe.
- You are testing brand or strategic decisions where the right answer is “what should we mean,” not “what converts higher.”
- The change is irreversible and being wrong is expensive.
- You are looking for explanations, not decisions — qualitative research and session replay are usually better.
Integrations
Works with any stack
Drop in the snippet and you're live.
Five minutes from now
Ready to run your first test?
14-day free trial, no credit card, and a revenue number on your first experiment.
- 14-day free trial
- No credit card required
- Cancel anytime