To get the install snippet in Google Tag Manager with Claude or ChatGPT, connect your Google Tag Manager account to PaidSync.ai and ask the assistant to get the install code for my container, which returns the script tags to add to your pages. It reads only.
A container does nothing until its code is on the site. One read tool returns the snippet:
get_gtm_container_snippet returns the installation code, the script tags that go on your website.list_gtm_containers finds the container the snippet belongs to.get_gtm_container_snippet and list_gtm_containers only read your account. That is the full set you need to get the install snippet.
| Tool | What it does |
|---|---|
| get_gtm_container_snippet | Returns the snippet |
| list_gtm_containers | Finds the container |
The snippet goes in the head and body of every page, or in your site platform settings if it has a field for it. Install it once and manage everything else from Tag Manager.
These steps use Claude to get the install snippet. PaidSync.ai also works in ChatGPT, and the prompts are the same.
Create a free account at paidsync.ai and approve Google Tag Manager on Google's own sign-in screen. You do not need an API key or any config file, only a login with access to the container where you will get the install snippet.
Open Claude's connector directory, add PaidSync.ai and sign in. Ask "list my Google Tag Manager containers", then pick the one where you will get the install snippet.
List your containers and choose one.
Request the install code for that container.
Paste the code where your site platform asks for it, or send it to your developer.
Open the live site, view the source, and search for the container ID. It should appear once.
Use these two prompts to get the install snippet, in this order.
get_gtm_container_snippet and list_gtm_containers only read Google Tag Manager, so nothing you do to get the install snippet edits your setup.Every Google Tag Manager tool PaidSync.ai offers is listed on the Google Tag Manager MCP server tools page, including the tools used to get the install snippet.
In Tag Manager, open Admin and Install Google Tag Manager. With PaidSync.ai the assistant returns the same code in chat.
No. Add it once per page and do the rest inside Tag Manager.
Yes. PaidSync.ai connects Google Tag Manager to ChatGPT and to Claude, and the same tools run in both, so you can ask it to get the install snippet the same way you would in Claude.
A container ID.
PaidSync.ai is free for 15 tasks a month with no card, enough to get the install snippet and see the result. Pro starts at $99 a month. See pricing.
PaidSync.ai runs 630+ tools across 14 ad and analytics platforms. Connect your accounts once and use them in the AI assistant you already work in.
Get Started Free Book a Demo