> For the complete documentation index, see [llms.txt](https://docs.groobee.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.groobee.ai/ja/admin/settings/custom.md). Agents can also search and read this documentation through its [MCP server](https://docs.groobee.ai/~gitbook/mcp).

# カスタム設定

groobeeが標準で収集するデータのほかに、自社サービスの特性に合わせた**特定の行動（イベント）**&#x3084;**顧客の情報（データ）**&#x3092;ターゲティングに使うため、事前に設定するページです。

目的に応じて、イベントとデータのうち適した方法を使ってください。

<table><thead><tr><th width="159.8046875">区分</th><th>イベント</th><th>データ</th></tr></thead><tbody><tr><td><strong>目的</strong></td><td>顧客の行動を捉える</td><td>顧客の情報を活用する</td></tr><tr><td><strong>例</strong></td><td>「カートボタンのクリック」「動画の再生」</td><td>「会員ランク」「保有ポイント」</td></tr><tr><td><strong>活用範囲</strong></td><td><p><strong>キャンペーン</strong></p><ul><li><strong>オンサイトキャンペーン:</strong> [キャンペーンの作成 > ステップ3：オプション設定 > カスタムイベント]</li></ul><p><strong>セグメント</strong></p><ul><li><strong>セグメント変数:</strong> [セグメントの作成 > セグメント変数 > カスタム]</li></ul></td><td><p><strong>セグメント</strong></p><ul><li><strong>セグメント変数:</strong> [セグメントの作成 > セグメント変数 > カスタム]</li></ul></td></tr><tr><td><strong>データ連携方式</strong></td><td>Java Script</td><td>REST API &#x26; Java Script</td></tr></tbody></table>

## **イベント**

顧客がサイト内で行う特定の行動を定義します。キャンペーンを表示するタイミング（Trigger）やセグメント変数として使われます。

{% hint style="warning" %}
追加したイベントを使うには、そのイベントが発生するタイミングに合わせて、必ず**groobee関数**を呼び出してください。\
[**\[スクリプトガイド > カスタムイベント\]**](https://docs.groobee.ai/ja/developer-guide/script-guide/custom-event.md)のドキュメントを参照してください。
{% endhint %}

<figure><img src="https://2476765724-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FojazvrSJySxAAO80FxSG%2Fuploads%2Fbl3MwahKrHN7RMF4xZjz%2Fja_028.png?alt=media" alt=""><figcaption></figcaption></figure>

### **1. イベントの追加**

<img src="https://2476765724-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FojazvrSJySxAAO80FxSG%2Fuploads%2FwxFkH8lyZC0xJngVUTMC%2Fja_027.png?alt=media" alt="" data-size="line"> ボタンをクリックして、イベントを追加してください。

<figure><img src="https://2476765724-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FojazvrSJySxAAO80FxSG%2Fuploads%2FX6VfXh7yRPqgCWFGABnZ%2Fja_029.png?alt=media" alt=""><figcaption></figcaption></figure>

* **イベントキー:** イベントを識別するための固有の値が自動で付与されます。
* **データタイプ:** そのイベントが発生したときに収集するデータの形式を選択してください。
* **イベント名:** groobee管理画面で管理者が識別するための名前を入力してください。（文字の種類を問わず最大50文字）

### **2. 検索**

検索欄に**イベントキー**を入力すると、目的の項目を探せます。

### **3. イベントリスト**

<figure><img src="https://2476765724-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FojazvrSJySxAAO80FxSG%2Fuploads%2FU7SL2OzybAoZW3d9oXxI%2Fja_030.png?alt=media" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="160.1484375">ヘッダー</th><th>説明</th></tr></thead><tbody><tr><td><strong>イベントキー</strong></td><td>イベントを識別するための固有の値です。</td></tr><tr><td><strong>データタイプ</strong></td><td>そのイベントが発生したときに収集するデータの形式です。</td></tr><tr><td><strong>イベント名</strong></td><td>イベントの追加時に設定した、管理者が識別するための名前です。</td></tr><tr><td><strong>活用有無</strong></td><td><p>そのイベントが現在キャンペーンやセグメントで使われているかどうかを示します。</p><ul><li><strong>活用:</strong> 1つ以上のキャンペーンまたはセグメントで使われている状態</li><li><strong>未活用:</strong> どこにも使われていない状態</li></ul></td></tr></tbody></table>

#### **3-1. 管理ツール**

行（Row）右側の <img src="https://content.gitbook.com/content/ojazvrSJySxAAO80FxSG/blobs/dElN5ybQPanr8G7uX5Ob/image.png" alt="" data-size="line"> アイコンをクリックすると、そのイベントを管理するメニューが表示されます。

<figure><img src="https://2476765724-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FojazvrSJySxAAO80FxSG%2Fuploads%2FTD9i4XWaiYhCu4aUN5JM%2Fja_031.png?alt=media" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="160.1796875">管理ツール</th><th>説明</th></tr></thead><tbody><tr><td><img src="https://content.gitbook.com/content/ojazvrSJySxAAO80FxSG/blobs/Ig79Vmw6KAkJ8A5FSEW8/image.png" alt="" data-size="line"> <strong>編集</strong></td><td>選択した項目の<strong>データタイプ</strong>または<strong>イベント名</strong>を編集します。<strong>活用</strong>状態のイベントは、イベント名のみ編集できます。</td></tr><tr><td><img src="https://content.gitbook.com/content/ojazvrSJySxAAO80FxSG/blobs/kraDhVyXzde2bnx39Pxg/image.png" alt="" data-size="line"> <strong>削除</strong></td><td>選択した項目を完全に削除します。<strong>未活用</strong>状態のイベントのみ削除できます。</td></tr></tbody></table>

***

## **データ**

自社で保有している顧客の情報を定義します。定義したデータはセグメント変数として使われます。

{% hint style="warning" %}

* 追加したデータを使うには、groobeeが提供するREST APIでデータを送信してください。\
  [**\[APIガイド > カスタムデータ\]**](https://docs.groobee.ai/ja/developer-guide/api-guide/custom-data.md)のドキュメントを参照してください。
* カスタムデータを変数として使って作成したセグメントは、時点（過去/現在/過去x現在）に関係なく、条件に一致する顧客をターゲティングします。
  {% endhint %}

<figure><img src="https://2476765724-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FojazvrSJySxAAO80FxSG%2Fuploads%2FyDu0LRHeGK3mmcCqpvfY%2Fja_032.png?alt=media" alt=""><figcaption></figcaption></figure>

### **1. データの追加**

<img src="https://2476765724-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FojazvrSJySxAAO80FxSG%2Fuploads%2FwxFkH8lyZC0xJngVUTMC%2Fja_027.png?alt=media" alt="" data-size="line"> ボタンをクリックして、データを追加してください。

<figure><img src="https://2476765724-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FojazvrSJySxAAO80FxSG%2Fuploads%2FRxf9Drd2bi6Y5HEygiBQ%2Fja_033.png?alt=media" alt=""><figcaption></figcaption></figure>

* **データキー:** データを識別するための固有の値を入力してください。
* **データタイプ:** そのキーで収集するデータの形式を選択してください。

### **2. 検索**

検索欄に**データキー**を入力すると、目的の項目を探せます。

### **3. データリスト**

<figure><img src="https://2476765724-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FojazvrSJySxAAO80FxSG%2Fuploads%2F8jErPorE7OLLN0lUcisr%2Fja_034.png?alt=media" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="160.1484375">ヘッダー</th><th>説明</th></tr></thead><tbody><tr><td><strong>データキー</strong></td><td>データを識別するための固有の値です。</td></tr><tr><td><strong>データタイプ</strong></td><td>そのキーで収集するデータの形式です。</td></tr><tr><td><strong>活用有無</strong></td><td><p>そのデータが現在セグメントで使われているかどうかを示します。</p><ul><li><strong>活用:</strong> 1つ以上のセグメントで使われている状態</li><li><strong>未活用:</strong> どこにも使われていない状態</li></ul></td></tr></tbody></table>

#### **3-1. 管理ツール**

行（Row）右側の <img src="https://content.gitbook.com/content/ojazvrSJySxAAO80FxSG/blobs/dElN5ybQPanr8G7uX5Ob/image.png" alt="" data-size="line"> アイコンをクリックすると、そのデータを管理するメニューが表示されます。

<figure><img src="https://2476765724-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FojazvrSJySxAAO80FxSG%2Fuploads%2FTD9i4XWaiYhCu4aUN5JM%2Fja_031.png?alt=media" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="160.1796875">管理ツール</th><th>説明</th></tr></thead><tbody><tr><td><img src="https://content.gitbook.com/content/ojazvrSJySxAAO80FxSG/blobs/Ig79Vmw6KAkJ8A5FSEW8/image.png" alt="" data-size="line"> <strong>編集</strong></td><td>選択した項目の<strong>データキー</strong>または<strong>データタイプ</strong>を編集します。<strong>未活用状態</strong>のデータのみ編集できます。</td></tr><tr><td><img src="https://content.gitbook.com/content/ojazvrSJySxAAO80FxSG/blobs/kraDhVyXzde2bnx39Pxg/image.png" alt="" data-size="line"> <strong>削除</strong></td><td>選択した項目を完全に削除します。<strong>未活用</strong>状態のデータのみ削除できます。</td></tr></tbody></table>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.groobee.ai/ja/admin/settings/custom.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
