> For the complete documentation index, see [llms.txt](https://docs.omnichat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.omnichat.ai/en/features/tong-xun-qu-dao/wang-zhan-dui-hua-cha-jian/install/google-tag-manager.md).

# Google Tag Manager | Omnichat Installation

How to install Omnichat on Google Tag Manager?

## Step 1

[login](https://app.omnichat.ai/) to the Omnichat admin page

## **Step 2**

Go Channels > Webchat > [Install Webchat Plugin](https://console.omnichat.ai/install-legacy) page

1\. Enter the website address where Omnichat will be installed\
2\. Choose the Omnichat theme colour\
3\. Select the Omnichat Language\
4\. Copy the Omnichat installation code

<figure><img src="https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FCt0OCjkNKrMAVwGlgpxr%2F%E6%88%AA%E5%9C%96%202023-06-01%20%E4%B8%8B%E5%8D%881.28.54.png?alt=media&amp;token=bf4270f7-8fa1-4fdb-908b-40f30c236c0d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FpK0B6ZllKQ5D9XFLSzAP%2F%E6%88%AA%E5%9C%96%202023-05-22%20%E4%B8%8A%E5%8D%8810.08.42.png?alt=media&amp;token=4c530d65-90cb-4639-b6c4-ec812aae9c32" alt=""><figcaption></figcaption></figure>

## **Step 3**

Log in to your Google Tag Manager account [https://tagmanager.google.com](https://tagmanager.google.com/)

{% hint style="info" %}
**Please note:** If you are installing the conversation plugin on a **self-built website**, or if Google Tag Manager (GTM) has not been previously installed on your site, please first refer to [Google’s official documentation](https://support.google.com/tagmanager/answer/14842164?hl=en\&sjid=10169247888733448974-NC) to install the GTM container on your website.
{% endhint %}

<figure><img src="https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FR5Q0bI9Od9UZ9kyBLXa1%2F%E6%88%AA%E5%9C%96%202025-08-27%20%E4%B8%8B%E5%8D%883.03.09.png?alt=media&amp;token=cc8ca6ea-0ed0-439e-bd67-887fc99b6ed7" alt=""><figcaption></figcaption></figure>

## Step 4

Adding a new account and set your Account Name and Container name, also choose **"Web"** under "Where to Use Container"

<figure><img src="https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FKtbp7iwLJIQaKB9Z76ru%2F%E6%88%AA%E5%9C%96%202023-05-22%20%E4%B8%8A%E5%8D%8810.40.33.png?alt=media&amp;token=b7c4a517-f3db-4c31-82ee-d27f775ce9c2" alt=""><figcaption></figcaption></figure>

## Step 5

Click **"New Tag"**

![](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LaFmilpuDQ-f7VKjHCH%2F-LeAHJmEqQ-uZ6zBY1eo%2F-LeALRWmgFQrSYVyT-q5%2Feasychat-install-shopline-5.png?alt=media\&token=7929516a-ace3-4dec-8639-082f976d7169)

## Step 6

Enter the tag name and press the Pencil in the upper right corner

![](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LaFmilpuDQ-f7VKjHCH%2F-LeAHJmEqQ-uZ6zBY1eo%2F-LeAM-LfsjBzZfVC_uT8%2Feasychat-install-shopline-6.png?alt=media\&token=73ec268f-a276-457d-b8ef-03e0894c9c9f)

## Step 7

Choose Custom HTML

<figure><img src="https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FcunDQlFBljE5lJhpHZvz%2F%E6%88%AA%E5%9C%96%202023-05-22%20%E4%B8%8A%E5%8D%8810.58.03.png?alt=media&amp;token=af6951ba-c897-4ae2-bfc7-e80dfc158ab4" alt=""><figcaption></figcaption></figure>

## Step 8

Copy Omnichat Javascript code and paste to HTML Textbox

Then in the “Triggering” block below, click "Edit"

<figure><img src="https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FqnytC6HhF9XHZ5ASAt8Y%2F%E6%88%AA%E5%9C%96%202023-05-22%20%E4%B8%8A%E5%8D%8811.01.50.png?alt=media&amp;token=8a3de9c6-501e-4fde-a090-6af117f8c167" alt=""><figcaption></figcaption></figure>

## Step 9

Press trigger and choose "**All Pages**"

<figure><img src="https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2Fsh8h7mwWS6nNJ1igWVxS%2Fchoose%20All%20Pages.png?alt=media&amp;token=ec90c533-8308-458a-bae0-cd4900acf475" alt=""><figcaption></figcaption></figure>

Click "Save".

<figure><img src="https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2F3t863H3L3H5ASysqJhUe%2F%E6%88%AA%E5%9C%96%202023-05-22%20%E4%B8%8A%E5%8D%8811.09.30.png?alt=media&amp;token=475167a1-0925-47cc-a58c-40ed28e55fd6" alt=""><figcaption></figcaption></figure>

## Step 10

Click "Submit".

<figure><img src="https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FYQeSX7ohAxvEjDgaBfC6%2F%E6%88%AA%E5%9C%96%202023-05-22%20%E4%B8%8A%E5%8D%8811.10.04.png?alt=media&amp;token=d9586090-88da-410a-9bab-aadcf34372e9" alt=""><figcaption></figcaption></figure>

Submit the new version and add "Version Name", "Version Description", then press "**PUBLISH**"

<figure><img src="https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FIoOkgyldjyvMdaxLXNRu%2F%E6%88%AA%E5%9C%96%202023-05-22%20%E4%B8%8A%E5%8D%8811.11.04.png?alt=media&amp;token=51360478-2613-4c6f-92de-2d58fad13c66" alt=""><figcaption></figcaption></figure>

## Finish**ed**!
