> 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/new-admin/segment/variable/order-record.md).

# 세그먼트 변수: 주문 이력

### **주문 횟수**

방문자가 주문한 횟수별로 타겟팅합니다.

**시점**

* 과거 : 기간 내 과거 주문 이력을 조회하여 주문 횟수가 조건 값을 만족하는 방문자
* 현재 : 현재 세션에서 조건 값을 만족하는 만큼 상품을 주문한 방문자

**변수 사용 예시**

주문 횟수 \[3]

* *이상* : 과거에 3번 이상 주문했던 방문자 타겟팅
* *이하* : 과거에 3번 이하로 주문했던 방문자 타겟팅
* *일 때* : 과거에 3번 주문한 방문자 타겟팅
* *아닐 때* : 과거에 3번 주문한 방문자를 제외한 타겟팅

주문 횟수 \[3 이상 5 이하]

* *범위 일 때* : 과거에 3번 이상 5번 이하로 주문했던 방문자 타겟팅
* *범위가 아닐 때* : 과거에 3번 이상 5번 이하로 주문했던 방문자를 제외한 타겟팅

***

### **첫 주문**

방문자의 첫 주문 여부에 따라 타겟팅합니다.

**시점**

* 과거 : 기간 내 첫 주문 이력이 있는 방문자
* 현재 : 현재 세션에서 처음으로 주문한 방문자

**변수 사용 예시**

첫 주문

* *첫 주문* : 처음으로 주문한 방문자 타겟팅
* *첫 주문 아닐 때* : 현재 주문이 재주문(주문 횟수가 1회 이상인 방문자)인 방문자 타겟팅

**Tip & Guide**

첫 주문의 기준은 구매이력이 없는 방문자가 주문을 했을 때를 의미합니다. 과거 변수로 사용 시 기간 내 첫 주문이 이력이 있으면 주문 횟수가 1번 이상이어도 타겟팅이 되므로 사용에 유의해주세요.

***

### **마지막 주문**

방문자의 마지막 주문 여부에 따라 타겟팅합니다.

**시점**

* 과거 : 기간 내 마지막 주문 이력이 있는 방문자
* 현재 : 현재 시점에서 사용 불가능한 변수

**변수 사용 예시**

마지막 주문

* *마지막 주문* : 기간 내 마지막 주문 이력이 있는 방문자 타겟팅
* *마지막 주문 아닐 때* : 기간 내 마지막 주문 이력이 있는 방문자를 제외한 타겟팅

***

### **주문 요일**

방문자가 주문한 요일 별로 타겟팅합니다.

**시점**

* 과거 : 기간 내 타겟팅한 요일에 주문한 이력이 있는 방문자
* 현재 : 타겟팅한 요일에 상품을 주문한 방문자

**변수 사용 예시**

방문 요일 \[월]

* *일 때* : 월요일에 주문한 방문자 타겟팅
* *아닐 때* : 월요일에 주문한 방문자를 제외한 타겟팅

***

### **주문 시간대**

방문자가 주문한 시간대 별로 타겟팅합니다.

**시점**

* 과거 : 기간 내 타겟팅한 시간대에 주문한 이력이 있는 방문자
* 현재 : 타겟팅한 시간대에 상품을 주문한 방문자

**변수 사용 예시**

방문 시간대 \[13시 \~ 14시]

* *일 때* : 13시 \~ 14시에 주문한 방문자 타겟팅
* *아닐 때* : 13시 \~ 14시 주문한 방문자를 제외한 타겟팅


---

# 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://docs.groobee.ai/new-admin/segment/variable/order-record.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.
