> 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/other/faq/how-to-use/using-search.md).

# 検索とセグメントの使い方

基準日、検索条件のAND/OR、ユーザー群の比較、社内ユーザーの除外、保存した条件のダッシュボード表示、セグメント条件の変更など、ユーザー検索・イベント検索・セグメントの使い方に関するよくある質問です。

ユーザー検索・イベント検索・セグメントを使う際の、よくある質問をまとめています。

## 「基準日」とは何ですか？なぜ設定が必要なのですか？ <a href="#base-date" id="base-date"></a>

`基準日` は集計の基準となる日で、その日時点でのユーザーの状態を集計します。デフォルトは `今日` で、`1日前`〜`3ヶ月前` やカレンダーでの指定もできます。

`直近30日`などの集計値も、選んだ基準日を起点にします。たとえば基準日を`1ヶ月前`、活動時間を`直近30日`とすると、1ヶ月前からさかのぼった30日間の活動時間で検索します。

詳しくは [ユーザーを検索する](/analytics/user/search-user.md) をご覧ください。

## 検索条件のAND/ORはどう設定しますか？異なる項目同士もOR条件にできますか？ <a href="#and-or" id="and-or"></a>

複数の条件を追加すると、すべての条件に一致する対象に絞り込みます（AND条件）。同じ項目内に複数の値を指定すると、いずれかに一致する条件を作れます（OR条件）。異なる項目同士をOR条件にすることはできません。

詳しくは [イベントを検索する](/analytics/event/search-event.md) をご覧ください。

## 社内ユーザーやテストアクセスを検索結果から除外するには？ <a href="#exclude-internal" id="exclude-internal"></a>

ユーザープロファイルで社内ユーザーフラグ（`isInternalUser`）を送信していれば、プリセット条件の `社外ユーザーのイベント` や該当フラグの条件で除外できます。このフラグを使って除外するには、あらかじめ社内ユーザーに `true` を送信しておく必要があります。

詳しくは [イベントのプリセット条件](/analytics/event/preset-condition.md) をご覧ください。

## セグメントの条件を変更すると、使っている画面の結果も変わりますか？ <a href="#segment-change" id="segment-change"></a>

はい。セグメントの条件を編集し、`セグメントを更新して保存`すると、そのセグメントを検索条件やフィルターに使っている各画面の集計にも影響します。元の条件を残したい場合は、更新する代わりに `新しいセグメントとして保存` を選択します。

詳しくは [セグメントを使う](/segment/segment/use.md) をご覧ください。

## 複数のユーザー群を比較できますか？最大いくつまで比較できますか？ <a href="#compare-groups" id="compare-groups"></a>

`比較条件を追加` から、最大3つのユーザー群（A・B・C群）を並べて比較できます。すべての群に共通の条件を適用する `共通条件` も設定できます。基本指標サマリでは、メインに選んだ群を基準に各群の差分が表示されます。

詳しくは [ユーザーを比較する](/analytics/user/compare-user.md) をご覧ください。

## 同じイベントを複数回発生させたユーザーを、1人としてまとめて見られますか？ <a href="#group-by-user" id="group-by-user"></a>

はい。イベント検索の結果で `ユーザー毎に表示` をオンにすると、チャートで選択した日の一覧で、条件に一致するイベントを複数回発生させたユーザーが1人としてまとめて表示されます。

詳しくは [イベント検索結果を見る](/analytics/event/result-event.md) をご覧ください。

## 保存した検索条件をダッシュボードに表示できますか？ <a href="#save-to-dashboard" id="save-to-dashboard"></a>

カスタムダッシュボードでは、画面上の対話で測りたい指標を伝えてウィジェットを追加します。保存した検索条件をそのままダッシュボードに載せる操作はありません。

詳しくは [ウィジェットを追加・編集する](/analytics/dashboard/custom-dashboard/create-widget.md) をご覧ください。


---

# 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.wicle.io/other/faq/how-to-use/using-search.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.
