gtm-tag-architect
gtm-tag-architect
Google Antigravity 및 Claude Code용 공개 프로덕션 준비 플러그인으로, MCP를 통해 Google Tag Manager에 연결합니다.
개발자/마케터에게 사이트에 대해 인터뷰하고, 컨테이너 결함(중복, 누락된 트리거, Consent Mode v2 위반)을 진단하며, 최적화된 추적 분류 체계와 dataLayer 계약을 생성하는 대화형 /setup 명령을 제공합니다.
기능
/setup대화형 명령: 3단계 인터뷰 및 감사 워크플로를 안내합니다.심층 컨테이너 진단: 중복 GA4/Meta 태그, 고아 트리거, 동의되지 않은 마케팅 픽셀, 렌더링 차단 스크립트를 감사합니다.
자동 수정: 태그를 중복 제거하고 모든 태그에 Google Consent Mode v2를 적용합니다.
업계 추적 매트릭스: E-Commerce, SaaS/PLG, B2B Lead Gen을 위한 사전 구축된 분류 런북.
개발자용
dataLayer.d.ts생성기: React, Next.js, vanilla 앱용 타입이 지정된 이벤트 계약과 헬퍼 push 함수를 생성합니다.듀얼 모드 MCP 서버: Google Tag Manager REST API v2에 대해 라이브로 실행되거나 로컬로 내보낸 컨테이너 JSON 파일을 오프라인으로 감사합니다.
Related MCP server: mcp-gtm-ga4
설치 및 설정
Google Antigravity용
이 저장소를 워크스페이스 또는 전역 사용자 지정 디렉터리에 클론하거나 배치하세요:
# In your project's .agents/plugins/ or ~/.gemini/config/plugins/
git clone https://github.com/jarnielcataluna/gtm-tag-architect.gitAntigravity는 플러그인을 자동으로 발견하고 /setup 슬래시 명령을 노출하며 mcp_config.json에 정의된 MCP 서버를 등록합니다.
Claude Code / 독립형 MCP용
claude_desktop_config.json 또는 프로젝트 MCP 설정에 서버를 등록하세요:
{
"mcpServers": {
"gtm-tag-architect": {
"command": "node",
"args": ["/path/to/gtm-tag-architect/bin/gtm-mcp.js"]
}
}
}사용법
/setup 명령 실행
Antigravity 또는 Claude Code 내에서:
/setup에이전트가 다음에 대해 인터뷰합니다:
사이트 유형 및 업종 (E-Commerce, SaaS, Lead Gen, Content)
필요한 픽셀 (GA4, Meta, LinkedIn, Google Ads, PostHog)
개인정보 보호 요구 사항 (GDPR / Consent Mode v2)
그런 다음 진단 감사를 수행하고 결함 수정, 동의 규칙 적용, 또는 깨끗한 dataLayer.d.ts 내보내기를 위한 작업 메뉴를 제시합니다.
테스트 및 로컬 감사
포함된 테스트 픽스처를 대상으로 오프라인 진단 테스트 하네스를 실행할 수 있습니다:
npm install
npm run audit-fixture라이선스
MIT
Available Tools
5 toolsgtm_add_tag_recipeB
Adds a pre-configured tag recipe (GA4 Core, Meta Pixel, PostHog, or LinkedIn) to the container workspace.
Inputs: recipe (required), pixelId, containerPath, measurementId.
gtm_apply_consent_modeA
Configures Google Consent Mode v2 on all analytics and marketing tags (requiring ad_storage, ad_user_data, and analytics_storage).
Inputs: defaultState, containerPath.
gtm_audit_containerA
Runs a deep diagnostic audit on a Google Tag Manager container. Identifies duplicate tags, missing triggers, unconsented tracking (Consent Mode v2), and heavy blocking scripts.
Inputs: containerPath.
gtm_deduplicate_tagsA
Deduplicates GA4 configuration and Meta Pixel tags in the GTM container, consolidating firing triggers and pruning duplicate base tags.
Inputs: containerPath.
gtm_generate_datalayer_typesA
Generates production TypeScript type definitions and helper push functions for developers (E-commerce, SaaS, or Lead Gen).
Inputs: industry (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct action in the GTM workflow—audit, deduplicate, apply consent, add recipe, generate types—so an agent can usually pick the right one. Minor overlap exists where audit surfaces duplicates and consent gaps that deduplicate and apply_consent_mode then fix, but the strong action verbs keep the boundaries clear.
All tool names follow the identical `gtm_<verb>_<object>` snake_case pattern with perfect consistency. The `gtm_` prefix scopes everything to the domain, and every verb is a single lowercase action word.
Five tools is a well-scoped surface for a GTM tag-management assistant. Each tool addresses a distinct stage of the tag lifecycle—audit, cleanup, compliance, templating, and developer handoff—without feature bloat.
The core architecture workflow is well covered: audit, deduplicate, configure consent, add standard tags, and generate TypeScript datalayer helpers. Publication/preview submission and tag removal are missing, so agents may need workarounds, but the primary setup path is fully covered.
Maintenance
Related MCP Connectors
Hosted Google Tag Manager MCP server, with each action switched on or off per account.
Hosted MCP server for marketing analytics: plan tracking, draft GTM tags, audit tags. Free in beta
Hosted MCP server for GA4, Google Ads and Search Console. Google OAuth, nothing to install.
Hosted Google Analytics 4 MCP server, with each action switched on or off per account.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP Server that provides a conversational interface to Google Tag Manager API, allowing users to manage tags, triggers, variables, and containers through natural language.-
- AlicenseAqualityBmaintenanceMCP server for Google Tag Manager and GA4, enabling tag management, consent auditing, workspace versioning, and analytics reporting through natural language.11321 npm3MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Google Tag Manager API v2, enabling programmatic management of accounts, containers, workspaces, tags, triggers, variables, and version workflows.34 npm16MIT
- AlicenseAqualityFmaintenanceAn MCP server for the Google Tag Manager API v2 that enables AI assistants to query GTM accounts, containers, tags, triggers, variables, and unpublished changes.241Apache 2.0