gtm-dom-standardization
CommunityStandardize GTM DOM IDs and tracking classes.
Authoraimonk2025
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Standardizes all click-related IDs and CSS classes across the codebase to ensure reliable analytics tracking with GTM/GA4, reducing naming drift and data inconsistencies.
Core Features & Use Cases
- Detects interactive elements (buttons, links, forms, media) and assigns consistent IDs and tracking classes without altering visuals.
- Applies the naming convention for IDs and classes (IDs: cta_{location}_{descriptor}; Classes: js-track js-{category} js-{action} js-{location}).
- Supports phase-based workflows including analysis, categorization, standardization, and validation on HTML/JSX/TSX/Vue.
Quick Start
Run the DOM standardization workflow on your codebase to apply analytics-ready IDs and tracking classes while preserving existing styles.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: gtm-dom-standardization Download link: https://github.com/aimonk2025/google-tag-manager-automation/archive/main.zip#gtm-dom-standardization Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.