To set consent settings on a tag in Google Tag Manager with Claude or ChatGPT, connect your Google Tag Manager account to PaidSync.ai and ask the assistant to set consent settings on a tag, which stops the tag firing until the consent is granted. It changes the workspace, so read the request before you approve.
Tags can require consent types, such as ad storage, before they fire. A write tool sets the consent status and types:
get_gtm_tag shows the current consent settings.update_gtm_tag sets the consent status and the consent types the tag requires.get_gtm_tag only reads your account. update_gtm_tag changes it. That is the full set you need to set consent settings on a tag.
| Tool | What it does |
|---|---|
| get_gtm_tag | Reads current settings |
| update_gtm_tag | Sets consent settings |
Match the settings to your consent banner and your legal advice. Test with consent denied and with consent granted.
These steps use Claude to set consent settings on a tag. PaidSync.ai also works in ChatGPT, and the prompts are the same.
Register at paidsync.ai and connect Google Tag Manager with Google's own sign-in screen. It needs no API key and no config file. Pick the Google login that manages the container you will set consent settings on a tag in.
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 set consent settings on a tag.
Open the tag and see its consent settings.
State which types must be granted before it fires.
Approve the change and open the tag again.
In preview mode, deny consent and check the tag does not fire, then grant it and check it does.
Use these two prompts to set consent settings on a tag, in this order.
get_gtm_tag only reads Google Tag Manager, so the lookup before you set consent settings on a tag changes nothing.update_gtm_tag applies on the first call without a dry run, so when you set consent settings on a tag, your assistant's approval prompt is the check before it runs.update_gtm_tag runs to set consent settings on a tag.Every Google Tag Manager tool PaidSync.ai offers is listed on the Google Tag Manager MCP server tools page, including the tools used to set consent settings on a tag.
In Tag Manager, open the tag and its consent settings. With PaidSync.ai you state the rule and the assistant applies it.
No. It only tells a tag which consent it needs. The banner still collects the choice.
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 set consent settings on a tag the same way you would in Claude.
Your consent types and the tag name.
PaidSync.ai is free for 15 tasks a month with no card, enough to set consent settings on a tag 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