> 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時から月末日の午後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時から午後11時59分まで） | 1日経過するごとに     |
| 5週間  | 1週間（日曜日から土曜日まで）      | 1週間経過するごとに    |
| 3か月  | 1か月（その月の1日から月末日まで）   | 1か月経過するごとに    |
| 2年   | 1年（1月1日から12月31日まで）   | 1年経過するごとに     |

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

期間にかかわらず、各単位の開始時刻は午前0時、終了時刻は午後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.
