> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.linkz.ai/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Google Tag Manager + Linkz.ai

### How to add Linkz.ai link auto-preview popups to Google Tag Manager?

| Prerequisite: Sign-up to Linkz.ai, add your website & get Linkz.ai code snippet

You can load Linkz.ai script via Google Tag Manager or any other similar tag manager tools. 

1. [Create a free Google Tag Manager (GTM) account](https://tagmanager.google.com/) or use your existing one
2. During GTM account creation, for **Container Setup** select **"Web"** if you are adding Linkz.ai on a website or** "iOS"/"Android"** if you are installing in a mobile app
3. Create a new tag in Google Tag Manager - **"Custom HTML"**.

![Create a new tag](https://storage.crisp.chat/users/helpdesk/website/647c175da1b93800/screen-shot-2021-08-06-at-1230_stujfm.png)

![Select "Custom HTML" type](https://storage.crisp.chat/users/helpdesk/website/647c175da1b93800/screen-shot-2021-08-06-at-1231_14pvu04.png)

4. Via this tag type you can insert Linkz.ai code snippet.

![Copy-paste Linkz.ai code snippet here](https://storage.crisp.chat/users/helpdesk/website/647c175da1b93800/screen-shot-2021-08-06-at-1231_1gxj6z7.png)

5. Set a trigger to **"All Page Views"**

![Set trigger to "All Page Views"](https://storage.crisp.chat/users/helpdesk/website/647c175da1b93800/screen-shot-2021-08-06-at-1231_1bzvqze.png)

6. Add Google Tag Manager Code to your website or insert GTM id (stars with GTM-*****) into your website builder.
