web-gtm - Generate consent-aware Google tag scripts
Generates consent-ordered Google tag scripts, validates tag IDs, provides CSP sources, and loads GTM conditionally.
Tags
Updated: 2026-09-29Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Generate Google tag head scripts
- Validate Google tag IDs
- Classify Google tag IDs
- Provide CSP host lists
- Provide cookie-policy services
- Generate GTM noscript frames
- Load GTM after consent
- Gate loaders by consent
Inputs
- Google tag ID
- Consent options
- Loading mode
- Data layer name
- HTML document
Outputs
- Inline Google tag script
- GTM noscript iframe or empty output
- Dynamically loaded GTM script
- Tag ID validation result
- Google tag kind result
- CSP source lists
- Cookie-policy service disclosures
- Consent-gated loading behavior
Requirements
- Installed @owlmeans/web-gtm package
- Available @owlmeans/consent APIs
- HTML head or body insertion access
- Browser DOM access for loadGtm
