Check GTM Snippet
check_gtm_snippetChecks a page for Google Tag Manager and gtag.js snippets, detects container IDs, GA4 measurement IDs, verifies head/body placement, noscript fallback, and duplicate IDs.
Instructions
Check a page for Google Tag Manager (GTM) and gtag.js snippets. Detects GTM container IDs, GA4 measurement IDs, verifies snippet placement (head vs body), noscript fallback, and duplicate IDs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "check_gtm_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to check for GTM/gtag snippets |