# Установка в AMP-страницы

Для сбора базовой статистики с [AMP-страниц](https://www.ampproject.org/) на каждой их них необходимо разместить код вида:

```
<!-- Top100.rambler.ru example -->
<amp-analytics type="top100" id="top100" config="https://kraken.rambler.ru/amp/config.json">
<script type="application/json">
{
    "vars": {
        "pid": "PROJECT_ID"
    }
}
</script>
</amp-analytics>
<!-- End Top100.rambler.ru example -->
```

**PROJECT\_ID** (обязательный) - id проекта, полученный при регистрации счётчика

При этом в коде в блоке `vars` обязательно необходимо указывать в качестве параметра `pid`идентификатор соответствующего счетчика.


---

# 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/nachalo-raboty-s-top-100/ustanovka-schyotchika-top-100/ustanovka-v-amp-stranicy.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.
