> 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="https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-0e7df8d9fa2b2b8cc3f1b333ce601aacde2f0b6f%2Ffce9f5404d15d0c5692cb3e89ff28b1305dd4baf8572e51e71766b633cc75c09.png?alt=media" 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="https://1458456015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-947333eb074b672e6904336b45f10753b2fc0bb9%2Ffc0d585ccace147e93200605e9af49924c8bb0ea43d5104d735aabdde9f87751.png?alt=media" 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.
