TenanciTenanci

Help centerMarketing & A/B tests

A/B tests in TailorKit

Create variants of your app's pages in the editor (even with different colors and logo), split your visitors and see which version converts better.

Available on: Growth, ScaleOpen in the dashboard

TailorKit's A/B tab lets you test changes in your own app, at the same address: a different headline on the home page, a button in another color, one step fewer in sign-up, even a different palette and logo. Part of your visitors see the original, part see the variant, and the editor shows which one converts better on the goal you choose.

How it works

  • Each test has the Original (A) and one to three variants (Variant B, C and D), each with its share of visitors (always adding up to 100%).
  • Assignment is per visitor: someone who landed on variant B keeps seeing B on later visits (a tnc_ab cookie, created only while a test is running, remembers it). The swap happens before the page appears, with no flicker.
  • A conversion counts when the visitor completes the goal after first seeing the test. Only pages that some variant changes count.
  • Each domain can have up to 10 tests.

Create a test

  1. Open the domain's TailorKit and go to the A/B tab.
  2. Under Test name, describe what you're testing (e.g. "Home page headline") and click Create test. The test starts as Draft, with the original and Variant B at 50% each.
  3. Under Goal used for comparison, pick the goal. Goals come from tenanci.track() and from the domain's page goals (see goals and events).
  4. On the variant, click Edit on site. The panel says "Editing variant …: changes only apply to visitors who land on it" and switches to the Element tab.
  5. Make the variant's changes as usual (editing elements). The preview shows the site the way the variant will look.
  6. Click Back to original when you're done.
  7. To test more than one idea, use Add variant (up to D). Traffic is split again in equal parts; adjust each one's % of visitors if you want.

Variant brand

To test a visual identity (a customer's new palette before adopting it for good, for example):

  1. On the variant, click Brand.
  2. Under This variant's brand, choose Primary, Secondary, Background and Text.
  3. Under Variant logo URL, paste the logo's https:// address.
  4. To undo, use Remove the variant's brand.

The colors only apply to visitors who land on the variant; anything you leave empty comes from the theme. The app's CSS variables that followed the theme color now follow the variant's color. The variant brand applies on every page of the domain.

Start, pause and end

  1. Click Start. The button is only enabled once a goal is chosen and every variant has at least one change.
  2. Publish TailorKit (publishing). Starting, pausing and ending change the draft; the site only changes after you publish.
  3. To stop assigning for a while, use Pause (everyone sees the original) and Resume.
  4. To finish, click End, choose the Version to keep and confirm. Every visitor now sees the chosen version (publish again).

While the test runs, the traffic split and the list of variants are locked; the name stays editable.

Read the results

Once started, the test card shows Results, refreshed every minute while it runs: for each version, the rate, visitors, conversions, the difference "vs. original" and the "chance to be better".

Message What it means
"Still collecting: wait for at least 100 visitors and 10 conversions in each version." the sample is too small to decide
"… is clearly winning." the variant has a clear advantage
"The original is clearly winning." the change made things worse; keep the original
"No clear winner so far." the versions can't be told apart yet

Published tests also appear on the domain's A/B tests page, in the TailorKit tests box, with an Open in editor button.

Open the domain's A/B tests

Through the API

The test lives in the TailorKit document, under experiments. To start, pause or end it from an automation, change the test's status in the document, save the draft and publish (publishing through the API).

Results come from GET /domains/:id/analytics/experiments/:exp, with the test id, the goal and the period since the start:

cURL
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/analytics/experiments/new-brand?goal=booking_completed&from=2026-10-01T00:00:00Z" \
  -H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"
# → { "variants": [ { "variant": "a", "visitors": 1840, "conversions": 92, "rate": 0.05, ... },
#                   { "variant": "b", "visitors": 790, "conversions": 51, "rate": 0.0646, "chanceToBeat": 0.94, ... } ],
#     "leader": "b", "enoughData": true }

In the document, the same test looks like this (the variant's changes live in pages, in the same format as the document's pages):

"experiments": [{
  "id": "new-brand", "name": "New brand", "status": "running", "goal": "booking_completed",
  "controlWeight": 70, "winner": null, "startedAt": "2026-10-01T00:00:00Z",
  "variants": [{ "key": "b", "name": "Variant B", "weight": 30, "pages": { "/*": { "css": "...", "rules": [] } } }]
}]