skills/analytics/gtm-management/SKILL.md
Manage Google Tag Manager containers, tags, triggers, and variables. Use when working with GTM configuration, analytics tracking, conversion tracking, or event management. Triggers on "GTM", "Google Tag Manager", "tags", "triggers", "analytics".
npx skillsauth add javeedishaq/ai-workflow-orchestrator gtm-managementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Manage Google Tag Manager containers using @akson analytics packages.
# Check GTM status
npm run gtm:status
# Validate configuration
npm run gtm:validate
# Plan changes (dry run)
npm run gtm:plan
# Apply changes
npm run gtm:apply
# Create backup
npm run gtm:backup
# Health check across platforms
npx @akson/cortex-analytics health --verbose
import { LEAD_GENERATION_EVENTS, LEAD_SCORES } from '@akson/cortex-utilities/events';
LEAD_GENERATION_EVENTS.LEAD_PAGE_VIEW // Score: 5
LEAD_GENERATION_EVENTS.LEAD_CONTENT_VIEW // Score: 15
LEAD_GENERATION_EVENTS.LEAD_INQUIRY_STARTED // Score: 40
LEAD_GENERATION_EVENTS.LEAD_CONTACT_INFO // Score: 60
LEAD_GENERATION_EVENTS.LEAD_WHATSAPP_CONTACT // Score: 85
LEAD_GENERATION_EVENTS.LEAD_FORM_SUBMITTED // Score: 100
import { ECOMMERCE_EVENTS } from '@akson/cortex-utilities/events';
ECOMMERCE_EVENTS.VIEW_ITEM // Product views
ECOMMERCE_EVENTS.ADD_TO_CART // Cart additions
ECOMMERCE_EVENTS.BEGIN_CHECKOUT // Checkout started
ECOMMERCE_EVENTS.PURCHASE // Completed transactions
| Platform | ID | |----------|-----| | GTM Container | GTM-T8WRBMWV | | GA4 Property | G-PTZF5JDTMH | | Google Ads Account | 8847935674 | | Google Ads Conversion | 659644670 | | PostHog Project | phc_Y8vb3DFiRumtKXyoKQsVO77XlE26AuDWc1iXaZc8rjC |
| Conversion | Label | |------------|-------| | Form Submission | JIHLCN-r-IwbEP7BxboC | | WhatsApp Contact | o9ylCNyr-IwbEP7BxboC |
# Get key from 1Password
op document get "MyArmy - GTM Service Account Key" --out-file config/gtm-api-automation.json
# Test access
npm run gtm:status
GOOGLE_SERVICE_ACCOUNT_KEY_FILE=config/gtm-api-automation.json
GTM_SERVICE_ACCOUNT_KEY_FILE=config/gtm-api-automation.json
# Verbose health check
npx @akson/cortex-analytics health --verbose
# Check specific platform
npx @akson/cortex-analytics gtm status --container GTM-T8WRBMWV
tools
# Test Patterns Testing patterns for reliable, maintainable, and fast tests. > **Template Usage:** Customize for your test framework (Vitest, Jest, Playwright, etc.) and assertion library. ## Test Structure ```typescript // user.test.ts import { describe, it, expect, beforeEach, afterEach } from 'vitest'; import { userService } from '@/services/user.service'; import { createTestUser, cleanupTestData } from '@/tests/helpers'; describe('UserService', () => { let testUserId: string; befor
tools
# State Management Patterns Client-side state management patterns for modern applications. > **Template Usage:** Customize for your state library (React Query, Zustand, Jotai, Redux, etc.). ## State Categories | Type | Description | Solution | |------|-------------|----------| | **Server State** | Data from API/database | React Query, SWR | | **Client State** | UI state, user preferences | Zustand, Jotai, useState | | **Form State** | Form inputs, validation | React Hook Form, Formik | | **U
development
# Service Patterns Service layer patterns for clean architecture with proper error handling, logging, and type safety. > **Template Usage:** Customize for your ORM (Prisma, Drizzle, TypeORM, etc.) and logging solution. ## Result Type Pattern Never throw exceptions from services. Always return a Result type. ```typescript // lib/result.ts export type Result<T, E = Error> = | { success: true; data: T } | { success: false; error: E }; export function ok<T>(data: T): Result<T, never> { r
testing
# Row-Level Security Patterns Database security patterns for multi-tenant and user-scoped data. > **Template Usage:** Customize for your database (PostgreSQL, Supabase, etc.) and auth system. ## RLS Fundamentals ### Enable RLS on Tables ```sql -- Enable RLS (required before policies take effect) ALTER TABLE users ENABLE ROW LEVEL SECURITY; ALTER TABLE posts ENABLE ROW LEVEL SECURITY; ALTER TABLE comments ENABLE ROW LEVEL SECURITY; -- Force RLS for table owners too (recommended) ALTER TABLE