> For the complete documentation index, see [llms.txt](https://docs.groobee.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.groobee.ai/ja/segments/segment/variable/visit-record.md). Agents can also search and read this documentation through its [MCP server](https://docs.groobee.ai/~gitbook/mcp).

# セグメント変数：訪問履歴

### **訪問回数**

訪問者のサイト訪問回数別にターゲティングします。

**時点**

* 過去：期間内の過去の訪問履歴を照会し、訪問回数が条件を満たす訪問者
* 現在：「現在」の時点では使用できない変数です。

**変数の使用例**

訪問回数 \[3]

* 以上：過去にサイトを3回以上訪問した訪問者をターゲティング
* 以下：過去にサイトを3回以下訪問した訪問者をターゲティング
* と等しい：過去にサイトを3回訪問した訪問者をターゲティング
* でない場合：過去にサイトを3回訪問した訪問者を除いてターゲティング

***

### **初回訪問**

訪問者が初回訪問かどうかでターゲティングします。

**時点**

* 過去：期間内に初回訪問の履歴がある訪問者
* 現在：現在のセッションが初回訪問である訪問者

**変数の使用例**

初回訪問

* *初回訪問*：初めてアクセスした訪問者をターゲティング
* *初回訪問以外*：再訪問者（訪問回数が1回以上の訪問者）をターゲティング

**Tip & Guide**

groobeeのCookieが初めて発行されたときを初回訪問とみなします。

***

### **最終訪問**

訪問者が最終訪問かどうかでターゲティングします。

**時点**

* 過去：期間内に最後に訪問した履歴がある訪問者
* 現在：「現在」の時点では使用できない変数です。

**変数の使用例**

最終訪問

* *最終訪問*：期間内に最終訪問の履歴がある訪問者をターゲティング
* *最終訪問以外*：期間内に最終訪問の履歴がある訪問者を除いてターゲティング

***

### **訪問曜日**

訪問者が訪問した曜日別にターゲティングします。

**時点**

* 過去：期間内に、ターゲティングした曜日に訪問した履歴がある訪問者
* 現在：ターゲティングした曜日に訪問している訪問者

**変数の使用例**

訪問曜日 \[月]

* と等しい：月曜日に訪問した訪問者をターゲティング
* でない場合：月曜日に訪問した訪問者を除いてターゲティング

***

### **訪問時間帯**

訪問者が訪問した時間帯別にターゲティングします。

**時点**

* 過去：期間内に、ターゲティングした時間帯に訪問した履歴がある訪問者
* 現在：ターゲティングした時間帯に訪問している訪問者

**変数の使用例**

訪問時間帯 \[13:00\~13:59]

* *と等しい*：13:00\~13:59の時間帯に訪問した訪問者をターゲティング
* *でない場合*：13:00\~13:59の時間帯に訪問した訪問者を除いてターゲティング


---

# 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.groobee.ai/ja/segments/segment/variable/visit-record.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.
