gtm_scan_website
Scan a web page's HTML to detect GTM containers, GA4/Google Ads IDs, consent mode, pixels, and inline dataLayer events; then list GTM script IDs and event names.
Instructions
Scan a web page's HTML (no browser needed) for tracking setup: GTM containers, GA4/Google Ads/UA IDs, gtag config, consent mode and CMPs, Meta/TikTok/Clarity/Hotjar/Pinterest pixels, server-side GTM, and inline dataLayer pushes. Also downloads each GTM container's public script to list the IDs and event names it uses. For the LIVE dataLayer (events pushed by JavaScript), use a browser and read window.dataLayer.
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": "gtm_scan_website"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| includeContainerScript | No |