# Google Tag Manager

## Step 1: Copy the code snippet

* Goto Settings > Web > Installation
* Enter the domain where you want to launch your chatbot
* Copy the "Widget installation code"

<figure><img src="/files/1hsHi5uGOId5mj081nAw" alt=""><figcaption></figcaption></figure>

## Step 2: Adding the code on Google Tag Manager

1. Login to your Tag Manager account
2. Click "Add a new tag"
3. Click tag configuration and select "Custom HTML"

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcc39WikWSkol3yv4aQBWtrxXhz87ZNXAwFdzo2KcuOAJZBqWWXvVrfiRRniuedzSWX47E4NLUfDFdd_kj3wUotPJCLIvU6qpauZZD1vmZbOZ3xb24NcAr-pW-QZSAtsjlqnQHv3Q?key=wyUY9-x1mWHKiucbFcJhly8U" alt=""><figcaption></figcaption></figure>

4. Paste the widget code here
5. Click trigger and choose "All pages"&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd0DrNqH4MqhLloZ_s2yInbDiNCeArFtbfxn9hdY9YeMgUVmh3T4uM8kjg_12x38p3U9yNrP9rpiSuJpS9XS965u2hMFwmTlrbE_e3lV8jxjBlNqwoE3QhnuKijDpS68vHQWjgYvw?key=wyUY9-x1mWHKiucbFcJhly8U" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**NOTE**:&#x20;

You may create a trigger to only show the chatbot on a few pages.
{% endhint %}


---

# 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://help.wotnot.io/deploy/publishing-agents/website/google-tag-manager.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.
