Link tags on Google Tag Manager
Where the link tags go on Google Tag Manager, and the one mistake that turns every page into a copy of one page.
The tag tells AI tools where your files are.
Your page's tags are in the dashboard, under Setup and then Install tags. They carry the real file addresses for that page, so they work as soon as the page is live. This guide is about where they go once you have them.
Where it goes on Google Tag Manager
In Tag Manager: new tag, Custom HTML, paste this in, set it to fire only on the one page it names, then publish.
- In Tag Manager, create a new tag of type Custom HTML.
- Paste these tags, set the tag to fire only on the one page they name, then publish.
What that covers
Tag Manager adds these after the page loads, using JavaScript. Many AI crawlers never run it, so they would not see the tag. Put it in the page's own head instead where you can.
Covering every page
To cover every page from one place, your template has to build the file name from the page's own address. That is a small change to your site's code, not a block you can paste. The naming rule is shown with it, and these tags are exactly what it should produce for this page.
The naming rule those tags follow:
- your home page (/) becomes index
- /technology becomes technology
- /docs/setup/ becomes docs/setup
and humans.txt describe the whole site. They are the same address on every page and never take a page name.