# Write to statistics

Add this action through the auxiliary menu on the left, or by right-clicking on an empty spot on the screen and selecting "Record to statistics":

![](/files/nRmjWCOSXJ6WxWgAzXC1) ![](/files/oYamTxGepomyLjpjkHJ2)

In the block menu, we can assign a name to it, as well as create a label, by which we can later find the event in the "Statistics" section.

![](/files/FUv2rmB91REU6uFUOgiv)

You can choose from existing labels.

![](/files/f5n5U54HciwO1kO9AMpa)

When an event tag is created, all data on it is available in the "Statistics" section:

![](/files/T94z0HHQ2KvuJgSZ4KWB)

![](/files/t2syZ1Jg4vKJRUsNseZ0)

Selected labels are displayed below the graph:

![](/files/NPiOikyowmte3TDUKYfW)

This way you can track how many users reached the right place in the chain or took a key action.


---

# 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.smartbotpro.io/scripts/actions/write-to-statistics.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.
