# Размещение виджета на сайт

1. Перейдите в раздел **“Результат”.**

&#x20; 2\. Скопируйте часть кода из формы **“Базовый код”** и часть кода из дополнительных параметров в форме **“Открывать автоматически”.**

<figure><img src="https://1141222632-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvdtSkqUDuO5XM96AcLMV%2Fuploads%2FwvjzsVYuPgacscpBPOiK%2F1.png?alt=media&#x26;token=de69f4b3-525d-4c83-9a6c-1c2517a84773" alt=""><figcaption></figcaption></figure>

#### **РАЗМЕЩЕНИЯ В GOOGLE TAG MANAGER** <a href="#shag-4.-hardbreak-razmesheniya-v-google-tag-manager" id="shag-4.-hardbreak-razmesheniya-v-google-tag-manager"></a>

**Важно:** У вас на сайте должен быть размещен код с контейнером **Google Tag Manager**.

1. Зайдите в свой аккаунт **GTM**.

&#x20; 2\. Создайте **Новый тег** в нужном нам аккаунте и представление.

<figure><img src="https://1141222632-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvdtSkqUDuO5XM96AcLMV%2Fuploads%2FxGtP12jvWCVwpXe73A7D%2F2.png?alt=media&#x26;token=2d156da3-4a38-40bd-b298-120210af3974" alt=""><figcaption></figcaption></figure>

3\. В **Конфигурация тега** выберите **“Пользовательский HTML**”.

<figure><img src="https://1141222632-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvdtSkqUDuO5XM96AcLMV%2Fuploads%2FWMqsgyyMiWCs7GTacoTE%2F3.png?alt=media&#x26;token=22a92917-e04a-485e-84e7-df9c7b6077c4" alt=""><figcaption></figcaption></figure>

4\. Вставьте скопированные ранее части html кода в поле **“HTML”**.

<figure><img src="https://1141222632-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvdtSkqUDuO5XM96AcLMV%2Fuploads%2FdNqXcrMDfJIQj67lxpmg%2F4.png?alt=media&#x26;token=337f58da-18cc-4a2a-bac0-b7073d40c90f" alt=""><figcaption></figcaption></figure>

5\. В **Триггеры** выберите **необходимые страницы** для размещения кода виджета.

<figure><img src="https://1141222632-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvdtSkqUDuO5XM96AcLMV%2Fuploads%2FB1XNNttmtQQB63yiKCVC%2F5.png?alt=media&#x26;token=8eb2daf7-bce4-49e9-95f6-6a44aacc1470" alt=""><figcaption></figcaption></figure>

6\. Нажмите кнопку **“Сохранить”**.

<figure><img src="https://1141222632-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvdtSkqUDuO5XM96AcLMV%2Fuploads%2FIL0bjBMr0iH1QMx5RGvG%2F6.png?alt=media&#x26;token=fb1d733c-b3be-41b6-b82b-f29651eaeaa1" alt=""><figcaption></figcaption></figure>

7\. Укажите **название** данного тега. Опубликуйте его.

<figure><img src="https://1141222632-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvdtSkqUDuO5XM96AcLMV%2Fuploads%2FZKCtjNMZmutjEZjohosN%2F7.png?alt=media&#x26;token=368a7fe7-ec98-4253-a00e-785246cd1c57" alt=""><figcaption></figcaption></figure>

8\. Нажмите кнопку “**Отправить”**.

<figure><img src="https://1141222632-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvdtSkqUDuO5XM96AcLMV%2Fuploads%2FZNSMWFku6FXzLBqRiZVu%2F8.png?alt=media&#x26;token=0372bd98-abb9-4582-a73a-cda45086872e" alt=""><figcaption></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.intellectdialog.com/prochee/razmeshenie-vidzheta-na-sait.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.
