> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participants/custom-and-calculated-fields/tracking-windows-for-calculated-fields-explained.md).

# 計算フィールドのトラッキングウィンドウの解説

{% hint style="info" %}
**注**: 以下の記事をご覧ください [計算フィールド](/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participants/custom-and-calculated-fields/calculated-fields-explained.md) それが何か、そしていつ役立つのかについての説明です。計算フィールドのトラッキングウィンドウの設定方法をお探しなら、次をご覧ください [計算フィールドの設定](/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participants/custom-and-calculated-fields/set-up-a-calculated-field.md).
{% endhint %}

トラッキングウィンドウを使用すると、計算フィールドに時間ベースの要素を追加できます。合計または件数の計算を使用する計算フィールドには、トラッキングウィンドウを追加できます。

計算フィールドにトラッキングウィンドウを含めると、参加者が定期的に価値（購入額など）を積み上げ、その値に応じて報酬を付与したい場合に便利です。イベントデータは、選択したウィンドウの間だけ計算されます。時間が経過してウィンドウが更新されると、以前のデータは考慮されません。

このフィールドの値を使って、参加者が次の目標に沿って行動するよう促すプログラムルールを設定できます：

* **最新性**: 休眠中の参加者に再アクティブ化や新規購入を促します。
* **頻度**: 最も利用頻度の高い顧客がプログラムやサービスに継続して関わるよう促します。
* **金額**: 一定の購入額のしきい値に達した高額購入者に報酬を与えます。

計算フィールドを設定するときは、2種類のトラッキングウィンドウから選べます：

{% tabs %}
{% tab title="固定トラッキングウィンドウ" %}
固定ウィンドウでは、暦日、週、月、または年の間に値を追跡できます。ウィンドウはその期間の開始時に始まり、終了時に繰り越されます。開始時刻と終了時刻は、impact.comアカウントのタイムゾーン設定によって異なります。

固定ウィンドウの計算フィールドを作成すると、フィールドを作成した時点からカウントが開始されます。次の完全な期間の開始を待つことはなく、見逃した場合でも、（デフォルトでは）現在の期間の開始時点から値をさかのぼって計算することはありません。

<details>

<summary>例</summary>

参加者が毎月一定額以上を使った場合に特別な報酬を付与するプログラムルールを設定したいとします。これを行うには、1か月の固定ウィンドウで購入額を合計する計算フィールドが必要です。これを設定すると、購入イベントは月初日の午前0:00から月末日の午後11:59まで追加されます。

<div data-with-frame="true"><figure><img src="/files/007f0eaff965a9a2f33478e61d8b90b36ff0a5c2" alt=""><figcaption></figcaption></figure></div>

</details>
{% endtab %}

{% tab title="スライディングトラッキングウィンドウ" %}
スライディングウィンドウでは、最大90日、週、月、年までのカスタム期間で値を測定できます。固定ウィンドウとは異なり、スライディングウィンドウは個別に設定された暦の区切りに依存しません。10日、5週間、3か月、2年などのウィンドウを設定できます。

各期間の中には個別の **単位** の時間があります。各単位が経過し、条件に合う新しいイベントを受信するたびに、計算フィールドは更新されます。

| 例の期間 | 時間の単位              | フィールドは更新されます… |
| ---- | ------------------ | ------------- |
| 10日  | 1日（午前0:00～午後11:59） | 毎日経過するたびに     |
| 5週間  | 1週間（日曜日から土曜日まで）    | 毎週経過するたびに     |
| 3か月  | 1か月（その月の初日から月末まで）  | 毎月経過するたびに     |
| 2年   | 1年（1月1日から12月31日まで） | 毎年経過するたびに     |

スライディングウィンドウでは、トラッキングウィンドウの各単位ごとに、合計または件数として扱う最大値を設定できます。たとえば、90日ウィンドウの各日や、12週間ウィンドウの各週ごとに設定できます。これは期間全体の上限を設定するものではなく、各単位ごとの上限を設定するだけです。

期間に関係なく、各単位の開始時刻は午前0:00（深夜）、終了時刻は午後11:59とみなします。これにはimpact.comアカウントのタイムゾーン設定を使用します。

<details>

<summary>例</summary>

参加者が90日間の支出額に応じてポイントを貯められるようにしたいとします。毎日経過し、条件に一致する新しいイベントデータを受信するたびに、計算フィールドの値は直近90日間の支出額を反映して更新されます。

<div data-with-frame="true"><figure><img src="/files/b6cbe6619beacc5ee01ef148be6a94b108283f7c" alt=""><figcaption></figcaption></figure></div>

</details>
{% endtab %}
{% endtabs %}


---

# 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://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participants/custom-and-calculated-fields/tracking-windows-for-calculated-fields-explained.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.
