> 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/track-event.md).

# Track event

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

| Operator Type          | Description                                         |
| ---------------------- | --------------------------------------------------- |
| Has been tracked       | Whether the selected event has been tracked         |
| Has not been tracked   | Whether the selected event has not been tracked     |
| Compare track by count | Comparing two different events by their track count |

### Has been tracked

CustomFit supports the following conditions for has been tracked operator type

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

#### Frequency Exactly

For example, tracking the number of times the visitors has played the demo video. If a visitor has played the demo video exactly 3 times in the last 10 days then, serve them B1 behavior

![](/files/-MXBH-MAoOveONRLUYJk)

![](/files/-MXBpdlAEN-2_qmMt7E2)

#### Frequency Atmost

For example, tracking the number of times the visitors has played the demo video. If a visitor has played the demo video atmost 3 times in the last 10 days then, serve them B1 behavior

![](/files/-MXBHIyFo-NDv7VKROf-)

![](/files/-MXBq6g0i4twgL3aJQKt)

#### Frequency Atleast

For example, targeting visitors who have clicked on Get pricing button atleast 1 time in the last 10 days then serve them B1 behavior

For example, tracking the number of times the visitors has played the demo video. If a visitor has played the demo video atleast 1 time in the last 10 days then, serve them B1 behavior

![](/files/-MXBHuPIcHUAzS-8tVXl)

![](/files/-MXBqybP3LlqXW9wdAfq)

#### Duration On

For example, tracking the number of times the visitors has played the demo video. If a visitor has played the demo video atleast 1 time on 10/01/2021then, serve them B1 behavior

![](/files/-MXBIBtyMLRZHHXKZh91)

![](/files/-MXBr9Z6FPCl4lv5F7rb)

#### Duration In the last

For example, tracking the number of times the visitors has played the demo video. If a visitor has played the demo video atleast 1 time in the last 10 days then, serve them B1 behavior

![](/files/-MXBHuPIcHUAzS-8tVXl)

![](/files/-MXBr-Qo5qiesgHpRQFN)

#### Duration In between

For example, tracking the number of times the visitors has played the demo video. If a visitor has played the demo video atleast 1 time in between 10/01/2021 and 20/01/2021 then, serve them B1 behavior

![](/files/-MXBIgaGIy2P-4RIczwA)

![](/files/-MXBrOo8QnptOaanMjZH)

#### Duration Before

For example, tracking the number of times the visitors has played the demo video. If a visitor has played the demo video atleast 1 time before 10/01/2021 then, serve them B1 behavior

![](/files/-MXBIuZ8O5jdfoK_oAqz)

![](/files/-MXBrWitnoGRFcBvyLea)

#### Duration After

For example, tracking the number of times the visitors has played the demo video. If a visitor has played the demo video atleast 1 time after 10/01/2021 then, serve them B1 behavior

![](/files/-MXBJBQbMpbgwY8PF8gl)

![](/files/-MXBrdXP64EBWW4O6wbE)

### Has not been tracked

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

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

#### Duration On

For example, tracking the number of times the visitors has played the demo video. If the visitors has not played the demo video on 10/01/2021 then, serve them B1 behavior

![](/files/-MXBJojtKjS8xLOTNLx0)

![](/files/-MXBtLjadpW8kBbvJHzc)

#### Duration In the last

For example, tracking the number of times the visitors has played the demo video. If the visitor has not played the demo video in the last 10 days then, serve them B1 behavior

![](/files/-MXBK2qpoGnCXRG9Yywo)

![](/files/-MXBtVEie0ZIs2Ow9MUt)

#### Duration In between

For example, tracking the number of times the visitors has played the demo video. If the visitor has not played the demo video in between 10/01/2021 and 20/01/2021 then, serve them B1 behavior

![](/files/-MXBKWPur_jWR1PMP6Hm)

![](/files/-MXBteG-4KNqhKe25huK)

#### Duration Before

For example, tracking the number of times the visitors has played the demo video. If the visitor has not played the demo video before 10/01/2021 then, serve them B1 behavior

![](/files/-MXBKkACExMpr-0jXZAR)

![](/files/-MXBtmAu1o3g7w5UMQOL)

#### Duration After

For example, tracking the number of times the visitors has played the demo video. If the visitor has not played the demo video after 10/01/2021 then, serve them B1 behavior

![](/files/-MXBJSH7c9hJpVbclsGE)

![](/files/-MXBseAyXwtu8n9M-Xhm)

### Compare track by count

CustomFit supports the following conditions for track by count operation type

| Conditions | Allowed Values            | Description                                                                                                      |
| ---------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| Frequency  | Greater Than              | The selected event has been tracked more number of times when compared with the list of events selected          |
|            | Greater Than or Equals to | The selected event has been tracked more or equal number of times when compared with the list of events selected |
|            | Lesser Than               | The selected event has been tracked less number of times when compared with the list of events selected          |
|            | Lesser Than or Equals To  | The selected event has been tracked less or equal number of times when compared with the list of events selected |
|            | Equals                    | The selected event has been tracked equal number of times when compared with the list of events 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

#### Frequency Greater than

For example, if a visitor has played the product1 video more number of times when compared with the product2 video in the last 10 days then, serve them B1 behavior

![](/files/-MXBvLEunFAv7LWGe0eE)

#### Frequency Greater than Equals

For example, if a visitor has played the product1 video more or same number of times when compared with the product2 video in the last 10 days then, serve them B1 behavior

#### Frequency Less than

For example, if a visitor has played the product1 video less number of times when compared with the product2 video in the last 10 days then, serve them B1 behavior

![](/files/-MXBxoHf-QlcUs_fPs1d)

#### Frequency Less than Equals

For example, if a visitor has played the product1 video less or same number of times when compared with the product2 video in the last 10 days then, serve them B1 behavior

#### Frequency Equals

For example, if a visitor has played the product1 video same number of times when compared with the product2 video in the last 10 days then, serve them B1 behavior

![](/files/-MXBxvFp-zt1U9WWbdOZ)

#### Duration On

For example, if a visitor has played the product1 video more number of times when compared with the product2 video on 10/01/2021 then, serve them B1 behavior

![](/files/-MXBzI7MnVDGaDDwT2pK)

#### Duration In the last

For example, if a visitor has played the product1 video more number of times when compared with the product2 video in the last 10 days then, serve them B1 behavior

![](/files/-MXBz8zbZ8CR1AKJn_C-)

#### Duration In between

For example, if a visitor has played the product1 video more number of times when compared with the product2 video  in between 10/01/2021 and 20/01/2021 then, serve them B1 behavior

![](/files/-MXBzRF8XUfLLJGjfFmJ)

#### Duration  Before

For example, if a visitor has played the product1 video more number of times when compared with the product2 video before 10/01/2021 then, serve them B1 behavior

![](/files/-MXBzmhXnz5EuiynOQyK)

#### Duration After

For example, if a visitor has played the product1 video more number of times when compared with the product2 video after 10/01/2021 then, serve them B1 behavior

![](/files/-MXBzzeJh-EBCnehD25K)


---

# 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/track-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.
