# Методы по работе с Счётчиком Топ-100

{% hint style="info" %}
**ВНИМАНИЕ!** Перед вызовом методов следует убедиться, что экземпляр счетчика создан и доступен. Данные не будут собираться, если счётчик ещё не создан, т.к. их не с чем связать.
{% endhint %}

Поддерживаются следующие методы по работе со счетчиком:

<table><thead><tr><th width="514">Метод</th><th>Описание</th></tr></thead><tbody><tr><td><pre><code>top100Counter.trackPageView("URL");
</code></pre></td><td><a href="/pages/qqXhfcSNt4vI132f0Vfg">Отправка события о просмотре страницы</a></td></tr><tr><td><pre><code>top100Counter.trackEvent("EVENT_NAME", EVENT_DATA);
</code></pre></td><td><a href="/pages/plBdTp63EgGHaKRY39IN">Метод trackEvent [ New ]</a></td></tr><tr><td><pre><code>top100Counter.syncUserId("USER_ID" || null);
</code></pre></td><td><a href="/pages/tnm02xyZHVLmgBsxfPsz">Метод для передачи идентификатора авторизованного пользователя</a></td></tr><tr><td><pre><code><strong>top100Counter.getPublisherId();
</strong></code></pre></td><td><a href="/pages/JWdGLnjYEIXhxG647xd3">Метод для получения данных об идентификаторе пользователя, устанавливаемого площадкой</a></td></tr><tr><td><pre><code>top100Counter.drawLogoTo("ELEMENT_ID");
</code></pre></td><td><a href="/pages/8ttLmiGO4GJbbzbFGv5A">Метод для отрисовки виджета на странице</a></td></tr><tr><td><pre><code>top100Counter.sendBlocks();
</code></pre></td><td><a href="/pages/R77DmOKeR76t3eh3yHpD">Метод для сканирования и отправки блоков</a></td></tr><tr><td><pre><code>top100Counter.updateOptions(COUNTER_PARAMS)
</code></pre></td><td><a href="/pages/458NozB0CfuZptxZpKYR">Метод для обновления параметров счетчика</a></td></tr></tbody></table>


---

# 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://top-100-writer.gitbook.io/top100-documentation/nastroika-sbora-i-otpravki-dannykh/veb-schyotchik/metody-po-rabote-s-schyotchikom-top-100.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.
