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.
Create a free Google Tag Manager (GTM) account or use your existing one
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
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)
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)
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)
Add Google Tag Manager Code to your website or insert GTM id (stars with GTM-*****) into your website builder.
Updated on: 06/01/2023
Thank you!