LogoClawIndex
CasesSkillsAbout
LogoClawIndex

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-29
Google Tag ManagerGoogle AnalyticsConsent ModeCSPweb tracking

Capabilities

Generate Google tag head scriptsValidate Google tag IDsClassify Google tag IDsProvide CSP host lists

Typical Inputs

Google tag IDConsent optionsLoading mode

Typical Outputs

Inline Google tag scriptGTM noscript iframe or empty outputDynamically loaded GTM script

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

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.