A/B test designs of your cookie banner with the Katla CLI.
A banner experiment tests up to three designs of your cookie banner against the banner you have
saved. Each visitor who has not answered yet sees one of them, and Katla compares how they answer:
under GDPR on the share who accept all (higher is better), under CCPA on the share who opt out
(lower is better).
Experiments are on the Pro plan and up. On other plans you can still list, read, stop and delete
the ones you already have.
List experiments
katla experiments ls example.com
Shows each experiment’s short ID, name, state (draft, scheduled, running or ended), dates,
and the variant you kept, if any. The short ID is enough to name an experiment in the other
commands: any unique start of the ID, 4 characters or more, works.
The saved banner is always the control. Each --variant is a name, a colon, then the settings it
changes as field=value pairs separated by commas. Repeat --variant for up to 3 variants:
top-left, top-right, bottom-left, bottom-right. With layout=banner, a top- position puts the banner at the top and a bottom- one at the bottom
blocking
true, false
equalButtons
true, false
radius
0 to 10
theme
system, light, dark
showSettingsButton
true, false. The floating cookie icon shown after a choice. With false, link to katla.open() elsewhere on the site so visitors can still change their mind
Only presentation can change. Regulation, Consent Mode, DMA and policy links stay as the site has
them in every variant.Visitors are split evenly unless you set --weights: whole percentages, the saved banner first,
adding up to 100.
Starts now, or when --start says, up to 90 days ahead: a date starts at midnight your local
time, or give an ISO date and time such as 2026-12-14T09:00+01:00. It runs for --days days, 7 to 90, 14 by default,
then ends on its own and visitors go back to the saved banner. A site runs one experiment at a
time.
Read the results
katla experiments show example.com 3f2a9c1e
Shows the variants and, once it has started, the results for each regulation with visitors: how
many visitors each variant had, how many answered, the accept all and reject rates (or the opt-out
rate under CCPA), and each variant’s difference from the saved banner in percentage points, with
the range the true difference most likely lies in.The verdict says whether a variant did better, the saved banner did, or there is no clear
difference. While the experiment runs, it is where things stand so far. Until there are at least
100 visitors per variant and a full week of data, it says what it is still waiting for and roughly
how many more visitors each variant needs.
Stop an experiment
katla experiments stop example.com 3f2a9c1e
Ends a scheduled or running experiment now. Visitors see the saved banner again, and the results
stop changing.
Keep a variant
katla experiments apply example.com 3f2a9c1e b
Saves the variant’s settings as the site’s banner, ending the experiment first if it is still
scheduled or running. Variants are keyed b, c and d in the order you gave them, as show
lists them. Applying control keeps the saved banner as it is.The command asks before it changes anything. Pass --yes to skip the question, for example in a
script.
Delete an experiment
katla experiments rm example.com 3f2a9c1e
Deletes a draft or an ended experiment, with its results. Stop a running one first.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Katla","colors":{"primary":"#5B21B6","light":"#C4B5FD","dark":"#5B21B6"},"logo":{"light":"https://mintcdn.com/katla/xlKOXUs3xUbBkfaM/logo/katla-logo.svg?fit=max\u0026auto=format\u0026n=xlKOXUs3xUbBkfaM\u0026q=85\u0026s=08f86a5fe428b5a24ffa3bfc2db50a5e","dark":"https://mintcdn.com/katla/xlKOXUs3xUbBkfaM/logo/katla-logo-dark.svg?fit=max\u0026auto=format\u0026n=xlKOXUs3xUbBkfaM\u0026q=85\u0026s=fa68f5d899d868430f777535d8e51964","href":"https://docs.katla.app"},"favicon":{"light":"https://mintcdn.com/katla/xlKOXUs3xUbBkfaM/logo/logo.svg?fit=max\u0026auto=format\u0026n=xlKOXUs3xUbBkfaM\u0026q=85\u0026s=6476b95beb1ec164e10d7f0620a291ff","dark":"https://mintcdn.com/katla/xlKOXUs3xUbBkfaM/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=xlKOXUs3xUbBkfaM\u0026q=85\u0026s=7acc3a1f913f3dfd8ed8087533e2b759"},"appearance":{"default":"dark"},"navbar":{"links":[{"href":"https://katla.app/contact","label":"Support"}],"primary":{"type":"button","label":"Get started","href":"https://katla.app"}},"icons":{"library":"lucide"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"katla","hasAudioNarration":false,"actualSubdomain":"katla","customDomains":["docs.katla.app"],"gitSource":{"type":"github","owner":"baboons","repo":"katla","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10d3a09ffae5051c40c31f"},"entitlements":{},"buildId":"6b12bc756bf89f5daeb3ec16","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"default","tag":"Documentation","count":24},{"language":"default","tag":"Guides","count":10},{"language":"default","tag":"Reference","count":9},{"language":"default","tag":"CLI","count":5},{"language":"default","tag":"Compliance","count":3},{"language":"default","tag":"Getting started","count":2},{"language":"default","tag":"SDK","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"cli-experiments","slug":"/cli-experiments","pageMetadata":{"title":"Banner experiments","description":"A/B test designs of your cookie banner with the Katla CLI.","href":"/cli-experiments"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"A/B test designs of your cookie banner with the Katla CLI.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`A banner experiment tests up to three designs of your cookie banner against the banner you have\nsaved. Each visitor who has not answered yet sees one of them, and Katla compares how they answer:\nunder GDPR on the share who accept all (higher is better), under CCPA on the share who opt out\n(lower is better).`}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Experiments are on the Pro plan and up. On other plans you can still list, read, stop and delete\nthe ones you already have.`})}),`\n`,_jsx(Heading,{level:`3`,id:`list-experiments`,children:`List experiments`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`katla`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` experiments`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ls`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` example.com`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Shows each experiment’s short ID, name, state (`,_jsx(_components.code,{children:`draft`}),`, `,_jsx(_components.code,{children:`scheduled`}),`, `,_jsx(_components.code,{children:`running`}),` or `,_jsx(_components.code,{children:`ended`}),`), dates,\nand the variant you kept, if any. The short ID is enough to name an experiment in the other\ncommands: any unique start of the ID, 4 characters or more, works.`]}),`\n`,_jsx(Heading,{level:`3`,id:`create-an-experiment`,children:`Create an experiment`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`katla`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` experiments`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` create`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` example.com`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --name`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bar vs box\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --variant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bottom bar:layout=banner,position=bottom-left\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The saved banner is always the control. Each `,_jsx(_components.code,{children:`--variant`}),` is a name, a colon, then the settings it\nchanges as `,_jsx(_components.code,{children:`field=value`}),` pairs separated by commas. Repeat `,_jsx(_components.code,{children:`--variant`}),` for up to 3 variants:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`katla`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` experiments`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` create`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` example.com`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --name`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Three designs\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --variant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bottom bar:layout=banner,position=bottom-left\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --variant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Blocking modal:layout=modal,blocking=true\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --variant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Dark:theme=dark,radius=0\"`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Values`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`layout`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`box`}),`, `,_jsx(_components.code,{children:`banner`}),`, `,_jsx(_components.code,{children:`modal`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`position`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`top-left`}),`, `,_jsx(_components.code,{children:`top-right`}),`, `,_jsx(_components.code,{children:`bottom-left`}),`, `,_jsx(_components.code,{children:`bottom-right`}),`. With `,_jsx(_components.code,{children:`layout=banner`}),`, a `,_jsx(_components.code,{children:`top-`}),` position puts the banner at the top and a `,_jsx(_components.code,{children:`bottom-`}),` one at the bottom`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`blocking`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),`, `,_jsx(_components.code,{children:`false`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`equalButtons`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),`, `,_jsx(_components.code,{children:`false`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`radius`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`0`}),` to `,_jsx(_components.code,{children:`10`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`theme`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`system`}),`, `,_jsx(_components.code,{children:`light`}),`, `,_jsx(_components.code,{children:`dark`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`showSettingsButton`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),`, `,_jsx(_components.code,{children:`false`}),`. The floating cookie icon shown after a choice. With `,_jsx(_components.code,{children:`false`}),`, link to `,_jsx(_components.code,{children:`katla.open()`}),` elsewhere on the site so visitors can still change their mind`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Only presentation can change. Regulation, Consent Mode, DMA and policy links stay as the site has\nthem in every variant.`}),`\n`,_jsxs(_components.p,{children:[`Visitors are split evenly unless you set `,_jsx(_components.code,{children:`--weights`}),`: whole percentages, the saved banner first,\nadding up to 100.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`katla`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` experiments`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` create`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` example.com`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --name`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Careful test\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --variant`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bottom bar:layout=banner\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --weights`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 80,20`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The experiment is created as a draft. Nothing changes for visitors until you start it.`}),`\n`,_jsx(Heading,{level:`3`,id:`start-an-experiment`,children:`Start an experiment`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`katla`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` experiments`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` example.com`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 3f2a9c1e`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`katla`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` experiments`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` example.com`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 3f2a9c1e`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --start`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 2026-12-14`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --days`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 21`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Starts now, or when `,_jsx(_components.code,{children:`--start`}),` says, up to 90 days ahead: a date starts at midnight your local\ntime, or give an ISO date and time such as `,_jsx(_components.code,{children:`2026-12-14T09:00+01:00`}),`. It runs for `,_jsx(_components.code,{children:`--days`}),` days, 7 to 90, 14 by default,\nthen ends on its own and visitors go back to the saved banner. A site runs one experiment at a\ntime.`]}),`\n`,_jsx(Heading,{level:`3`,id:`read-the-results`,children:`Read the results`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`katla`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` experiments`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` show`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` example.com`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 3f2a9c1e`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Shows the variants and, once it has started, the results for each regulation with visitors: how\nmany visitors each variant had, how many answered, the accept all and reject rates (or the opt-out\nrate under CCPA), and each variant’s difference from the saved banner in percentage points, with\nthe range the true difference most likely lies in.`}),`\n`,_jsx(_components.p,{children:`The verdict says whether a variant did better, the saved banner did, or there is no clear\ndifference. While the experiment runs, it is where things stand so far. Until there are at least\n100 visitors per variant and a full week of data, it says what it is still waiting for and roughly\nhow many more visitors each variant needs.`}),`\n`,_jsx(Heading,{level:`3`,id:`stop-an-experiment`,children:`Stop an experiment`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`katla`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` experiments`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` stop`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` example.com`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 3f2a9c1e`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Ends a scheduled or running experiment now. Visitors see the saved banner again, and the results\nstop changing.`}),`\n`,_jsx(Heading,{level:`3`,id:`keep-a-variant`,children:`Keep a variant`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`katla`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` experiments`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` apply`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` example.com`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 3f2a9c1e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` b`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Saves the variant’s settings as the site’s banner, ending the experiment first if it is still\nscheduled or running. Variants are keyed `,_jsx(_components.code,{children:`b`}),`, `,_jsx(_components.code,{children:`c`}),` and `,_jsx(_components.code,{children:`d`}),` in the order you gave them, as `,_jsx(_components.code,{children:`show`}),`\nlists them. Applying `,_jsx(_components.code,{children:`control`}),` keeps the saved banner as it is.`]}),`\n`,_jsxs(_components.p,{children:[`The command asks before it changes anything. Pass `,_jsx(_components.code,{children:`--yes`}),` to skip the question, for example in a\nscript.`]}),`\n`,_jsx(Heading,{level:`3`,id:`delete-an-experiment`,children:`Delete an experiment`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`katla`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` experiments`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` example.com`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 3f2a9c1e`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Deletes a draft or an ended experiment, with its results. Stop a running one first.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Banner experiments","description":"A/B test designs of your cookie banner with the Katla CLI.","href":"/cli-experiments"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"List experiments","slug":"list-experiments","depth":3,"children":[]},{"title":"Create an experiment","slug":"create-an-experiment","depth":3,"children":[]},{"title":"Start an experiment","slug":"start-an-experiment","depth":3,"children":[]},{"title":"Read the results","slug":"read-the-results","depth":3,"children":[]},{"title":"Stop an experiment","slug":"stop-an-experiment","depth":3,"children":[]},{"title":"Keep a variant","slug":"keep-a-variant","depth":3,"children":[]},{"title":"Delete an experiment","slug":"delete-an-experiment","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"katla","siteName":"Katla","title":"Banner experiments - Katla","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-02T15:34:25.625Z","originalFileLocation":"cli-experiments.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"A/B test designs of your cookie banner with the Katla CLI.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Katla\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/katla/G2w2FO9xT88wB8Jr/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/katla/G2w2FO9xT88wB8Jr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/katla/G2w2FO9xT88wB8Jr/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/katla/G2w2FO9xT88wB8Jr/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/katla/G2w2FO9xT88wB8Jr/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/katla/G2w2FO9xT88wB8Jr/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/katla/G2w2FO9xT88wB8Jr/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/katla/G2w2FO9xT88wB8Jr/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/katla/G2w2FO9xT88wB8Jr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Banner experiments - Katla\">\u003cmeta data-mint-head property=\"og:description\" content=\"A/B test designs of your cookie banner with the Katla CLI.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Katla\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.katla.app/cli-experiments\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://katla.mintlify.site/_mintlify/api/og/v2?division=CLI\u0026amp;title=Banner+experiments\u0026amp;description=A%2FB+test+designs+of+your+cookie+banner+with+the+Katla+CLI.\u0026amp;theme=59fe5711882e057ff55d2520\u0026amp;signature=9f7803717ed7d769645a83b399810a5da3cbcc5f41bed4d2670fd3c73e4473db\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Banner experiments - Katla\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"A/B test designs of your cookie banner with the Katla CLI.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://katla.mintlify.site/_mintlify/api/og/v2?division=CLI\u0026amp;title=Banner+experiments\u0026amp;description=A%2FB+test+designs+of+your+cookie+banner+with+the+Katla+CLI.\u0026amp;theme=59fe5711882e057ff55d2520\u0026amp;signature=9f7803717ed7d769645a83b399810a5da3cbcc5f41bed4d2670fd3c73e4473db\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/katla/G2w2FO9xT88wB8Jr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Katla\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5B21B6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.katla.app/cli-experiments\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cli-experiments.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.katla.app/#organization\",\"name\":\"Katla\",\"url\":\"https://docs.katla.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/katla/xlKOXUs3xUbBkfaM/logo/katla-logo.svg?fit=max\u0026auto=format\u0026n=xlKOXUs3xUbBkfaM\u0026q=85\u0026s=08f86a5fe428b5a24ffa3bfc2db50a5e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.katla.app#website\",\"name\":\"Katla\",\"url\":\"https://docs.katla.app\",\"publisher\":{\"@id\":\"https://docs.katla.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.katla.app/cli-experiments#webpage\",\"url\":\"https://docs.katla.app/cli-experiments\",\"name\":\"Banner experiments\",\"description\":\"A/B test designs of your cookie banner with the Katla CLI.\",\"dateModified\":\"2026-12-02T15:34:25.625Z\",\"isPartOf\":{\"@id\":\"https://docs.katla.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.katla.app/cli-experiments#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.katla.app/cli-experiments#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reference\",\"item\":\"https://docs.katla.app/sdk\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CLI\",\"item\":\"https://docs.katla.app/cli\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Banner experiments\",\"item\":\"https://docs.katla.app/cli-experiments\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.katla.app/cli-experiments#article\",\"headline\":\"Banner experiments\",\"name\":\"Banner experiments\",\"description\":\"A/B test designs of your cookie banner with the Katla CLI.\",\"url\":\"https://docs.katla.app/cli-experiments\",\"mainEntityOfPage\":{\"@id\":\"https://docs.katla.app/cli-experiments#webpage\"},\"dateModified\":\"2026-12-02T15:34:25.625Z\",\"publisher\":{\"@id\":\"https://docs.katla.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.katla.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Katla\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Katla\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cli-experiments.md","siteName":"Katla","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Getting started","pages":[{"title":"Introduction","href":""},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Guides","pages":[{"title":"Widget","href":"/widget"},{"title":"Accessibility widget","href":"/accessibility-widget"},{"title":"React","href":"/react"},{"title":"Next.js","href":"/nextjs"},{"title":"WordPress \u0026 WooCommerce","href":"/wordpress"},{"title":"Shopify","href":"/shopify"},{"title":"Webflow","href":"/webflow"},{"title":"Policy embed","href":"/policy-embed"},{"title":"MCP server","href":"/mcp-server"},{"title":"Service accounts","href":"/service-accounts"}]},{"group":"Reference","pages":[{"group":"SDK","pages":[{"title":"Typescript","href":"/sdk"},{"title":"Static cookies","href":"/sdk-static-cookies"}]},{"group":"CLI","pages":[{"title":"CLI overview","href":"/cli"},{"title":"Domains","href":"/cli-domains"},{"title":"Cookies \u0026 consents","description":"List, update, and export cookies and consent records with the Katla CLI.","href":"/cli-cookies-and-consents"},{"title":"Banner experiments","href":"/cli-experiments"},{"title":"Widget \u0026 plan","description":"View widget installation URLs and manage your billing plan with the Katla CLI.","href":"/cli-widget-and-plan"}]},{"title":"MCP reference","href":"/mcp-reference"},{"title":"JavaScript API","href":"/javascript-api"}]},{"group":"Compliance","pages":[{"title":"Google Consent Mode","href":"/google-consent-mode"},{"title":"CCPA/CPRA","href":"/ccpa"},{"title":"DMA","href":"/dma"}]}]}]},"basePath":"","title":"Banner experiments - Katla","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":[],"chunks":[]}