> For the complete documentation index, see [llms.txt](https://help.wotnot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.wotnot.io/deploy/publishing-agents/website/google-tag-manager.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.wotnot.io/deploy/publishing-agents/website/google-tag-manager.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
