# 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: 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:

```
GET https://docs.codpeller.com/en/social-proof/product-guide/real-time-stats-messages/product-purchase-counter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
