> For the complete documentation index, see [llms.txt](https://docs.codpeller.com/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codpeller.com/en/social-proof/product-guide/real-time-stats-messages/product-view-counter.md).

# Product View Counter

This message shows how many people are interested in a product

<div align="left"><figure><img src="https://content.gitbook.com/content/b8tXvs0XGg1dcXcoJqFy/blobs/5VjjwHGDe3x8m8IPaGvt/image.png" alt=""><figcaption><p>Рис. 9</p></figcaption></figure></div>

### There are 2 types of messages you can turn o&#x6E;**:**

* 👀 How many people are viewing the product right now
* 📅 How many people viewed the product during the last X days

You can turn each message **on or off** in the message settings (see Fig. 10).

<div align="left"><figure><img src="https://content.gitbook.com/content/b8tXvs0XGg1dcXcoJqFy/blobs/f44nlp7wYoE33LaGEnPz/2.png" alt=""><figcaption><p>Рис. 10.</p></figcaption></figure></div>

If a message is turned on, it will appear right on the product page (see Fig. 11 and Fig. 12):

<figure><img src="https://content.gitbook.com/content/b8tXvs0XGg1dcXcoJqFy/blobs/mZHW6GiyHwDwKI2YjWrM/3.png" alt=""><figcaption><p>Fig. 11. Message: “1 people are viewing this product right now”</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/b8tXvs0XGg1dcXcoJqFy/blobs/WfGbumHB56OnC4FJhyKI/4.png" alt=""><figcaption><p>Fig. 11. Message: “3 people viewed this product in the last 24 hours”</p></figcaption></figure>

#### **🔁 Two display modes:**

Each message can work in one of two ways:

* **Random numbers** – the message shows made-up numbers between X and Y
* **Real store data** – the message shows actual numbers from your store

#### **⏱️ How often the message appears:**

You can control how often each message is shown on the product page:

* **100** = always shown
* **0** = never shown

Set the number from **0 to 100** depending on how often you want it to appear (see Fig. 13)

<figure><img src="https://content.gitbook.com/content/b8tXvs0XGg1dcXcoJqFy/blobs/3r1jkqzOfEZUsuurleu9/5.png" alt=""><figcaption><p>Fig. 13.</p></figcaption></figure>


---

# 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.codpeller.com/en/social-proof/product-guide/real-time-stats-messages/product-view-counter.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.
