> For the complete documentation index, see [llms.txt](https://doc.customfit.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.customfit.ai/audience-segments/visitor-behavior/page-event.md).

# Page event

For page events, CustomFit.ai supports three types of operator types:

| Operator Type         | Description                                       |
| --------------------- | ------------------------------------------------- |
| Has been viewed       | Whether the selected page has been viewed         |
| Has not been viewed   | Whether the selected page has not been viewed     |
| Compare view by count | Comparing two different pages by their view count |

### Has been viewed

CustomFit supports the following conditions for has been viewed operator type

| Conditions | Allowed Values | Description                                                     |
| ---------- | -------------- | --------------------------------------------------------------- |
| Frequency  | Exactly        | The selected page has been viewed exactly "n" times             |
|            | At Most        | The selected page has been viewed at most "n" times             |
|            | At Least       | The selected page has been viewed at least "n" times            |
| Duration   | On             | The selected page has been viewed on the given date "X"         |
|            | In The Last    | The selected page has been viewed in the last "X" days          |
|            | In Between     | The selected page has been viewed between "X" date and "Y" date |
|            | Before         | The selected page has been viewed before "X" date               |
|            | After          | The selected page has been viewed after "X" date                |

#### Frequency Exactly

For example, targeting visitors who have visited the pricing page exactly 3 times in the last 10 days then serve them B1 behavior

![](/files/-MatYJiRegfe18mMox2k)

#### Frequency Atmost

For example, targeting visitors who have visited the pricing page atmost(Maximum) 3 times in the last 10 days then serve them B1 behavior

![](/files/-MatYQHuNAXCaShvNt1S)

#### Frequency Atleast

For example, targeting visitors who have visited the pricing page atleast(Minimum) 3 times in the last 10 days then serve them B1 behavior

![](/files/-MatYBtPunrmxq9IGcCX)

#### Duration On

For example, targeting visitors who have visited the pricing page exactly 3 times on 01/10/2021(MM/DD/YYYY) then serve them B1 behavior

![](/files/-MatYjucOouKMRY0hkVt)

#### Duration In the last

For example, targeting visitors who have visited the pricing page atleast 3 times in the last 10 days then serve them B1 behavior

![](/files/-MatYBtPunrmxq9IGcCX)

#### Duration In between

For example, targeting visitors who have visited the pricing page alteast 3 times in between 01/10/2021 to 01/20/2021(MM/DD/YYYY) then serve them B1 behavior

![](/files/-MatZ8k3RknGPrcS85em)

#### Duration Before

For example, targeting visitors who have visited the pricing page atleast 3 times before 01/10/2021(MM/DD/YYYY) then serve them B1 behavior

![](/files/-MatZmvmyxIjTVkWt-Oh)

#### Duration After

For example, targeting visitors who have visited the pricing page atleast 3 times after 01/10/2021(MM/DD/YYYY) then serve them B1 behavior

![](/files/-Mat_7S6yaz76zFJm5AC)

### Has not been viewed

CustomFit supports the following conditions for has not been viewed operator type

| Conditions | Allowed Values | Description                                                         |
| ---------- | -------------- | ------------------------------------------------------------------- |
| Duration   | On             | The selected page has not been viewed on the given date "X"         |
|            | In The Last    | The selected page has not been viewed in the last "X" days o        |
|            | In Between     | The selected page has not been viewed between "X" date and "Y" date |
|            | Before         | The selected page has not been viewed before "X" date               |
|            | After          | The selected page has not been viewed after "X" date                |

#### Duration On

For example, targeting visitors who have not visited the pricing page on 01/10/2021(MM/DD/YYYY) then serve them B1 behavior

![](/files/-MatpEtvVpdB9fPBTazx)

#### Duration In the last

For example, targeting visitors who have not visited the pricing page in the last 10 days then serve them B1 behavior

![](/files/-MatpMoti-mak8ZKnL9f)

#### Duration In between

For example, targeting visitors who have not visited the pricing page in between 01/10/2021 to 01/20/2021(MM/DD/YYYY) then serve them B1 behavior

![](/files/-MatpeIvolqCwV_JiSJ3)

#### Duration Before

For example, targeting visitors who have not visited the pricing page before 01/10/2021(MM/DD/YYYY) then serve them B1 behavior

![](/files/-Matpnsz4MWJSY6i8ah9)

#### Duration After

For example, targeting visitors who have not visited the pricing page after 01/10/2021(MM/DD/YYYY) then serve them B1 behavior

![](/files/-MatouEEpDdUPD6Kg03m)

### Compare view by count

For Compare view by count, CustomFit supports the following conditions

| Conditions | Allowed Values            | Description                                                                                                       |
| ---------- | ------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| Frequency  | Greater Than              | The selected page should have been viewed more number of times compared to the list of pages selected             |
|            | Greater Than or Equals to | The selected page should have been viewed more or the same number of times compared to the list of pages selected |
|            | Lesser Than               | The selected page should have been viewed less number of times compared to the list of pages selected             |
|            | Lesser Than or Equals To  | The selected page should have been viewed less or same number of times compared to the list of pages selected     |
|            | Equals                    | The selected page should have been viewed same number of times compared to the list of pages selected             |
| Duration   | On                        | The comparison of the count value will be on the given date "X"                                                   |
|            | In The Last               | The comparison of the count value will be in the last "X" days                                                    |
|            | In Between                | The comparison of the count value will be between "X" date and "Y" date                                           |
|            | Before                    | The comparison of the count value will be before "X" date                                                         |
|            | After                     | The comparison of the count value will be after "X" date                                                          |

#### Frequency Greater than

For example, targeting visitors who have visited subscription management page more number of times when compared to Billing automation & UPI transactions page in the last 10 days then, serve them Subscription management behavior

![](/files/-MUrhHb2zoyW5BqXNjdu)

#### Frequency Greater than Equal to

For example, targeting visitors who have visited subscription management page more or equal number of times when compared to Billing automation & UPI transactions page in the last 10 days then, serve them Subscription management behavior

#### Frequency Lesser than

For example, targeting visitors who have visited subscription management page less number of times when compared to Billing automation & UPI transactions page in the last 10 days then, serve them Subscription management behavior

![](/files/-MUrjpwbUSSOuAMbvEst)

#### Frequency Lesser than Equal to

For example, targeting visitors who have visited subscription management page less or equal number of times when compared to Billing automation & UPI transactions page in the last 10 days then, serve them Subscription management behavior

#### Frequency Equals

For example, targeting visitors who have visited subscription management page same number of times when compared to Billing automation & UPI transactions page in the last 10 days then, serve them Subscription management behavior

![](/files/-MUrid89jq_2ML3UYpN-)

#### Duration On

For example, serve Subscription management behavior who have visited subscription management page more number of times when compared to Billing automation & UPI transactions page on 01/10/2021(MM/DD/YYYY)

![](/files/-MUs5SrUiIE_ogPLz14z)

#### Duration In the last

For example, serve Subscription management behavior who have visited subscription management page more number of times when compared to Billing automation & UPI transactions page in the last 10 days

![](/files/-MUs5XgnO8Ib46m56sBb)

#### Duration In between

For example, serve Subscription management behavior who have visited subscription management page more number of times when compared to Billing automation & UPI transactions page between 01/10/2021 to 01/20/2021(MM/DD/YYYY)

![](/files/-MUs5cEAM5Jbb5Vs2v1V)

#### Duration After

For example, serve Subscription management behavior who have visited subscription management page more number of times when compared to Billing automation & UPI transactions page after 01/10/2021(MM/DD/YYYY)

![](/files/-MUs5hQErVZdAJQlTNH0)

#### Duration Before

For example, serve Subscription management behavior who have visited subscription management page more number of times when compared to Billing automation & UPI transactions page before 01/10/2021(MM/DD/YYYY)

![](/files/-MUs5odCOVH8yszITVpT)


---

# 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://doc.customfit.ai/audience-segments/visitor-behavior/page-event.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.
