Skip to content

Install with an AI assistant

AI coding assistants (Claude Code, Cursor, GitHub Copilot, ChatGPT and others) can do the whole install.

In the portal, open Ad Units & Tags → Install site tag → AI assistant and click Copy instructions for your AI. The instructions carry:

  • your site, Publisher ID, Property ID and tag host;
  • your site tag and every ad unit;
  • a link to our machine-readable guide, llms.txt;
  • the rules: one site tag per site, never copy tag.js, never change the ids;
  • how to check the result with window.tgm.status().

Paste them into the assistant while it has access to your site’s code. It detects your platform (Next.js, Nuxt, Laravel, WordPress, plain HTML…) and installs the site tag once. It asks you where each ad unit should go, then checks its work. Review its changes before you deploy them.

  • Index: /llms.txt. Everything in one file: /llms-full.txt.
  • Every guide is also available as Markdown: add .md to its URL, for example /publishers/install/react.md.