> For the complete documentation index, see [llms.txt](https://docs.smartbotpro.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.smartbotpro.io/information-sections/statistics.md).

# Statistics

In this section, you will learn how to collect and track statistics in Smartbot

{% hint style="info" %}
Collecting statistics allows you to track the performance of your scenario funnels. You can see at what stage of the scenario certain events occur: for example, users leave or, on the contrary, take a key action.&#x20;
{% endhint %}

You can enter the statistics section from the project menu, where all scenarios are presented.

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FUysHsh0rdVkazuzjVGDM%2F1.png?alt=media\&token=6cbac01e-bba5-4598-867e-7b18f3e50ebc)

In the interface of the section, you can choose what to display on the chart:&#x20;

* What event (or several events) are you interested in. For example, how many messages were received from users.&#x20;
* What time range is needed (several days, a week, a month, etc.)&#x20;
* How many events happened, or how many users participated in them.

![Интерфейс раздела "Статистика"](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2Fuag0iqycCTgKazQmikyj%2F2.png?alt=media\&token=ecd57166-3f45-4405-a487-2a57cce25235)

### How to collect statistics

In the list of events, we can choose from several categories:&#x20;

* **Blocks of statistics.** These are the events that we ourselves created using the "Record event in statistics" action.

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2F50zcijtaWLJISotMYCkA%2F3.png?alt=media\&token=f70fa66b-19bb-4a53-be10-798f6218350a)

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FVxT9UxAw5whJYFNTryDf%2F4.png?alt=media\&token=34c6cdfd-9b7b-4647-ade0-e7767c50a029)

![К примеру, здесь бот для сети зоомагазинов проводит опрос, какой у клиента питомец, и заносит в статистику варианты.](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FJCV95Xc1WMb3QmvIWQHf%2F5.png?alt=media\&token=aefb99c7-e1dd-4f01-b989-0417d141ba7e)

The label names are the blocks of statistics that we can create and subsequently view on the chart.&#x20;

* General events

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FfcIeyIvjoWOBb9H2FxB2%2F6.png?alt=media\&token=14740ef0-10e2-48fc-b6df-1b9f48567546)

In this category, you can see how many specific actions your bot performed in a given period: how many messages were written, how many variables were set, etc.&#x20;

* Named Blocks

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FKg773pw2mOnIhNNuuaRr%2F7.png?alt=media\&token=faf1a4f2-b3f2-4143-a32f-f13543676ee6)

Here, you can select a specific script block as a tracked event: how many times it was executed in a certain period.

![Например, здесь бот для зоомагазина с помощью блока записи в статистику фиксирует результат опроса пользователя ](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FwknHQpzx0OtBaDaIXL59%2F8.png?alt=media\&token=78cb233e-ab60-4385-a7bb-8ce2cab3669b)

* Special events&#x20;

In this section, your scheduled transitions (i.e., "schedule delayed transition" and "cancel" actions)

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FPF3uPXvlf1xvjvtuccnE%2F10.png?alt=media\&token=603820ba-8a21-4577-b676-8c6dbd0357b6)

You can select any number of events to display on the chart, as well as download the table as a file for each of the selected events.

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FGo6LmIKU0h539T3HQOyl%2F11.png?alt=media\&token=879e41cb-142b-4d3a-8cbc-f6c468e86f2b)

Now you know how to interact with statistics in Smartbot Pro!
