A/B testing with Umami
Last updated: 29 November 2026.
Umami is an open-source analytics tool that counts visitors and events without cookies. It does not run A/B tests for you: its own guide says that assigning visitors to versions is your application's job, and Umami only records the label. Pickbook A/B does the assigning, counts who reaches your goal, and gives the answer. With one setting it also sends each visitor's version to Umami as an event, so you can break your Umami reports down by version.
What Umami does and what Pickbook A/B does
Umami measures traffic. In its guide to A/B testing analytics, Umami shows how to label each page view with a
version using its data-tag attribute, and it says the way visitors are assigned to versions is up to
you. Pickbook A/B is the part that assigns them: it decides which version each visitor sees, counts each visitor
once, and tells you in plain words which version did better. Read
How Pickbook A/B picks a winner for how it decides.
Pickbook A/B sends Umami the name of the test and the name of the version, and nothing else. It never sends visitor IDs or personal data, and it reads nothing back from Umami.
Turn it on
Add data-analytics="umami" to the Pickbook A/B script tag. The setting is off until you add it. Your
Umami script must be on the same page. Keep the long line that comes before the tag in your install code exactly as
it is.
<script async src="https://YOUR-ADDRESS/pickbook.js?v=2" data-key="YOUR-WEBSITE-KEY" data-analytics="umami" data-pickbook onerror="var c=document.documentElement.classList;c.remove('pickbook-hide');c.add('pickbook-ready');window.pickbook&&pickbook._e&&pickbook._e()"></script>
You can list more than one tool, for example data-analytics="umami,plausible", or use
data-analytics="all". Umami's script often loads after Pickbook A/B, so Pickbook A/B tries again for
5 seconds. If Umami loads later than that, that page sends no event. It sends each version to Umami once per page.
What appears in your Umami reports
Pickbook A/B sends Umami an event named pickbook_version with the event data test and
version. For a test named new-headline and a visitor who saw Version B, the data is
test = new-headline and version = Version B.
In Umami, open the Events page and then the Properties tab. It lists the data that events carry and a breakdown of
the values, so you can see how many events came from each version. You can also use the filter panel to narrow
your reports to one test or one version. The name pickbook_version is 16 characters, well inside
Umami's limit of 50 characters for event names.
Which numbers to trust for the answer
Read the winner from Pickbook A/B, not from your Umami reports. Pickbook A/B counts each visitor once, in the version they were given, and it waits until the test has the visitors it planned for. Umami reports can count events instead of visitors, can miss visitors whose browser blocks Umami, and have no rule for when a difference is more than luck. Use Umami to see what else changed, such as where visitors went next. For the rule behind the answer, read How to tell a real difference from luck.
Privacy stays the way you chose it
Umami says it works without cookies, cross-site tracking, or automatic collection of personal data. The Pickbook A/B script sets no cookies either. It keeps a random visitor ID in the browser's local storage, and under EU rules that can need consent. So it has a consent mode, and a mode that keeps nothing in browser storage. Read Cookieless A/B testing and Does A/B testing need cookie consent? for the details. Pickbook A/B keeps your tests and your visitors' data in a database in the European Union.
Check your traffic first
Your Umami dashboard already shows how many visitors a page gets in a month. Enter that number in What can I test with my traffic? to see which tests can finish within 60 days, before you set one up. Your first test on Pickbook A/B is free, one per website, and you don't need a card. If you use Plausible or Fathom instead, read A/B testing with Plausible or A/B testing with Fathom. To compare more tools, read Privacy-friendly A/B testing tools compared.
Questions
Does Umami have A/B testing built in?
No. Umami's own guide to A/B testing analytics says that how visitors are assigned to versions is your application's job, and that Umami only records the label (checked on 29 November 2026). Umami's documentation does not describe a feature that splits visitors or picks a winner. Pickbook A/B does the splitting and the answer.
Do I need cookies to use this with Umami?
No. Umami says it works without cookies, and the Pickbook A/B script sets no cookies. It keeps a random visitor ID in the browser's local storage, which can need consent under EU rules, so it also has a consent mode and a mode that keeps nothing in browser storage.
Will the version show in my Umami reports?
Yes, once you add data-analytics="umami" to the script tag. Pickbook A/B sends an event named pickbook_version with the event data test and version, and you can see it on the Events page of Umami under Properties.
Which tool decides the winner, Umami or Pickbook A/B?
Pickbook A/B decides. It counts each visitor once in the version they were given and gives its answer when the test has the visitors it planned for. Umami only shows the version events, and it reads nothing back from Pickbook A/B.
Sources
- A/B Testing Analytics: How to Measure Experiments on Your Website, Umami, checked on 29 November 2026.
- Track events, Umami documentation, checked on 29 November 2026.
- Tracker functions, Umami documentation (umami.track(name, data)), checked on 29 November 2026.
- Event data, Umami documentation (the Properties tab on the Events page), checked on 29 November 2026.
- Introduction, Umami documentation, checked on 29 November 2026.