# 高度な条件設定

## イベント発生タイミングの条件 <a href="#event-timing-condition" id="event-timing-condition"></a>

<figure><img src="/files/V2suVPp9109c4Tj95VQe" alt=""><figcaption></figcaption></figure>

ステップ間の前後関係をはじめとした発生タイミングに関する条件を設定することができます。

<figure><img src="/files/3pB1MJbBPti4wkfGyRSM" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="189">タイミングの名前</th><th>説明</th><th>条件名</th></tr></thead><tbody><tr><td>後（After）</td><td>前ステップのイベント発生日時以降で条件に合致したイベントに絞られる</td><td>・前ステップより後に発生<br>・前ステップより後に発生(同一時間含む)</td></tr><tr><td>前（Before）</td><td>前ステップのイベント発生日時以前で条件に合致したイベントに絞られる</td><td>・前ステップより前に発生<br>・前ステップより前に発生(同一時間含む)</td></tr><tr><td>同じセッション（Same Session）</td><td>前ステップのイベントと同じセッション内(前後関係は無視)で条件に合致したイベントに絞られる</td><td>・同じセッションで発生<br>・同じセッションで発生(前ステップより後)</td></tr><tr><td>前後すべて（All）</td><td>対象期間の全てのイベント</td><td>・前後全て</td></tr></tbody></table>

## 前ステップからの発生時刻の設定 <a href="#time-from-previous-step" id="time-from-previous-step"></a>

前ステップのイベントの発生時刻との差の上限を分単位で設定することができます。\
例えば、**10分以内**と設定すると、前ステップのいずれかのイベント発生時刻から**10分以内**に発生したイベントに集計対象が絞られます。


---

# Agent Instructions: 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:

```
GET https://docs.wicle.io/analytics/funnel/advanced-condition.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
