> 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-purchase-counter.md).

# Product Purchase Counter

If this message is enabled, it will appear on the product page (see Fig. 4).

<figure><img src="/files/WIXVPhzeroNc07V6xYOO" alt=""><figcaption><p>Fig. 4</p></figcaption></figure>

### **Display Modes**

You can choose between two display modes for this message:

* **Random** (shows made-up numbers)
* **Real data** (shows actual store statistics)

### **🔄 Random Mode**

If **Random Mode is enabled**, the message will show how many times the product was purchased in the last 24 hours — with a random number between **X and Y** (see Fig. 5)

<figure><img src="/files/CN7aoAYYvrSiNrYsAlnp" alt=""><figcaption><p>Fig. 5</p></figcaption></figure>

#### 🧮 **Product Count Rules**&#x20;

You can choose whether to **include or exclude out-of-stock products** in the count (see Fig. 6)

<figure><img src="/files/GiSarY9fujLzYwUWDOIz" alt=""><figcaption><p>Fig. 6</p></figcaption></figure>

#### **⏱️ Display Frequency**

Set how often the message appears on the product page, from **0 to 100**:\
– **100** = always visible\
– **0** = never shown\
(see Fig. 7)

<figure><img src="/files/wxxS8oRlyYfGkHhG0O6f" alt=""><figcaption><p>Fig. 7</p></figcaption></figure>

### 📊 **Real Data Mode**

If you enable real store data, the message will show the **actual number of purchases**, and you can choose the time range:\
– **day,** \
**– week,** \
**– month,** \
**– or all time** \
(see Fig. 8)

<figure><img src="/files/iomgW2kxYiTA2KPtTJ59" alt=""><figcaption><p>Fig. 8</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 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.codpeller.com/en/social-proof/product-guide/real-time-stats-messages/product-purchase-counter.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.
