> For the complete documentation index, see [llms.txt](https://docs.wicle.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wicle.io/action/experiment.md).

# A/Bテスト

{% hint style="warning" %}
A/Bテストは現在**クローズドβ版**として提供している機能です。仕様や画面は予告なく変更される場合があります。お気づきの点やご要望があれば、ぜひフィードバックをお寄せください。
{% endhint %}

## A/Bテストとは <a href="#about" id="about"></a>

WicleのA/Bテストでは、対象サイトにJavaScript・CSS・HTMLを配信して、ページの表示やレイアウトを変更できます。変更を加えていないコントロール（A）と、変更を加えたトリートメント（B）を出し分け、コンバージョン率などの指標で効果を比較します。

コードはAIエージェントとの対話やテンプレートから生成できるため、サイトのソースコードを直接編集することなく施策を試せます。

## できること <a href="#features" id="features"></a>

* AIエージェントとの対話、またはテンプレートから施策コードを生成できます
* URL・デバイス・ユーザー属性・スケジュール・配信比率で、配信対象を細かく制御できます
* コンバージョンイベントをもとに、リフト率・信頼区間・p値で効果を統計的に判定できます
* 改善対象ページをAIが分析し、施策案を自動で提案させることもできます

## クローズドβのご利用について <a href="#closed-beta" id="closed-beta"></a>

機能によって、利用に必要な手続きが異なります。

| 機能            | 申込の要否 | 説明                                        |
| ------------- | ----- | ----------------------------------------- |
| AIで施策案を生成する   | 不要    | 申込前でも、アイデア出し（AI施策アイディエーション）は利用できます        |
| 施策の作成・配信・効果測定 | 必要    | クローズドβへの申込と、事前アンケート・オンボーディング面談の完了後に利用できます |

## 全体の流れ <a href="#flow" id="flow"></a>

A/Bテストは次の流れで進めます。

1. **施策を作成する** — 作成画面で方法を選び、AIエージェントやテンプレートで施策のコードを用意します
2. **配信設定をする** — 配信対象のURLやバリアントの比率、コンバージョンなどを設定します
3. **プレビューで確認する** — サンプルプレビューとライブプレビューで表示を確認します
4. **配信前チェックをする** — 設定の抜け漏れやAIレビュー、配信規模感を確認します
5. **配信を開始する** — 設定したURL条件に一致するページで施策が配信されます
6. **効果を測定する** — 配信実績と統計検定の結果から、施策を採用するか判断します

## 一覧画面の見方 <a href="#list" id="list"></a>

A/Bテスト画面では、施策の一覧を確認できます。

* ステータスタブ（`すべて` / `下書き` / `配信中` / `一時停止` / `アーカイブ`）で絞り込めます。`すべて` ではアーカイブ以外が表示されます
* `施策名で検索` から施策名で検索できます
* 各施策には、プレビューサムネイル・ステータス・バリアント・配信UU・クリック・CV・リフト率・エラー・更新日が表示されます
* 会話数（AIチャットのユーザー送信回数）とコード行数（全バリアントの JS+CSS+HTML 合計）も確認できます
* 行メニューから、複製・アーカイブ・アーカイブ解除・削除ができます

右上の `AI に提案させる` から施策案の生成を、`新規作成` から施策の作成を開始できます。

## ご利用の前提 <a href="#prerequisites" id="prerequisites"></a>

A/Bテストを利用するには、対象サイトにWicleの計測タグが設置されている必要があります。

{% hint style="info" %}
計測タグの設置については [計測タグ](/initial-setting/tag.md) をご覧ください。
{% endhint %}

{% hint style="warning" %}
施策はブラウザ上で実行されるため、特に既存の要素を変更する施策では、ページ表示の直後に一瞬だけ変更前の状態が見える場合があります（フリッカー）。
{% endhint %}

{% hint style="warning" %}
対象サイトにContent Security Policy（CSP）を設定している場合、A/Bテストの配信に使う `cdn.wicle.io`（配信設定・コード）と `img.wicle.io`（画像）が許可されている必要があります。許可されていないと施策が配信されません。設定方法は [CSPによりタグがブロックされていないか確認する](/other/troubleshoot/tag/check-csp.md) をご覧ください。
{% endhint %}

## 各機能の使い方 <a href="#guides" id="guides"></a>

{% content-ref url="/pages/MUbTF6tfInyufFPXCP3q" %}
[施策を作成する](/action/experiment/create.md)
{% endcontent-ref %}

{% content-ref url="/pages/90XuAcbJqhAuaSejXj0V" %}
[自分で実装する](/action/experiment/create/diy-coding.md)
{% endcontent-ref %}

{% content-ref url="/pages/ay73EkdMhTnDckIdLtow" %}
[配信設定](/action/experiment/settings.md)
{% endcontent-ref %}

{% content-ref url="/pages/SebfPztI7QbPi7vI0znG" %}
[配信と効果測定](/action/experiment/delivery.md)
{% endcontent-ref %}

{% content-ref url="/pages/7PHHPBihRYwRaY68iJla" %}
[AIで施策案を生成する](/action/experiment/ideation.md)
{% endcontent-ref %}

{% content-ref url="/pages/4piGIwUlo3jtrWb60nMH" %}
[Chrome拡張で動作を確認する](/action/experiment/debug.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.wicle.io/action/experiment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
