> ## 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).

# Substack + Linkz.ai

### How to add Linkz.ai link auto-preview popups to Substack?

||| Substack has disabled all options of adding custom HTML. It is not possible to add Linkz.ai script to Substack at the moment.

Substack is a tool to grow a paid newsletter. You can add code snippets (custom HTML) including Linkz.ai script to Substack via Google Tag Manager. Substack does not support adding custom HTML, hence Google Tag Manager workaround. Here is the flow:

1. [Create a free Google Tag Manager Account](https://tagmanager.google.com/) or login into your existing one
2. Add Linkz.ai script to your Google Tag Manager 
3. Add your Google Tag Manager id to your Substack settings

Google Tag Manager will load Linkz.ai script in your Substack posts and your visitors will see link previews in your posts.


![Add Google Tag Manager to Substack](https://storage.crisp.chat/users/helpdesk/website/647c175da1b93800/screen-shot-2021-08-06-at-9273_nakbzj.png)