Skip to content
gtm-management logo

GTM Management

gtm-management

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".

SKILL.md

Full skill instructions

GTM Management

Manage Google Tag Manager containers using @akson analytics packages.

When to Use

  • User mentions "GTM", "Google Tag Manager"
  • User asks about tags, triggers, or variables
  • User wants to set up conversion tracking
  • User needs to validate analytics configuration
  • User mentions Google Ads conversions

Quick Commands

# 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

Event Naming Standards

Lead Generation Events (Landing Pages)

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

E-commerce Events (Shopify)

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 Configuration

PlatformID
GTM ContainerGTM-T8WRBMWV
GA4 PropertyG-PTZF5JDTMH
Google Ads Account8847935674
Google Ads Conversion659644670
PostHog Projectphc_Y8vb3DFiRumtKXyoKQsVO77XlE26AuDWc1iXaZc8rjC

Conversion Labels

ConversionLabel
Form SubmissionJIHLCN-r-IwbEP7BxboC
WhatsApp Contacto9ylCNyr-IwbEP7BxboC

Service Account Setup

# 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

Environment Variables

GOOGLE_SERVICE_ACCOUNT_KEY_FILE=config/​gtm-api-automation.json
GTM_SERVICE_ACCOUNT_KEY_FILE=config/​gtm-api-automation.json

Key Rules

DO:

  • Use standardized event names from @akson/​cortex-utilities
  • Test in GTM preview mode before publishing
  • Create backups before changes
  • Validate configuration after updates

DON'T:

  • Mix lead generation and e-commerce event systems
  • Use hardcoded event names
  • Deploy without testing
  • Skip validation step

Common Patterns

Add GA4 Event Tag

  1. Create trigger for the event
  2. Create GA4 Event tag
  3. Set event name and parameters
  4. Test in preview mode
  5. Publish container

Add Google Ads Conversion

  1. Get conversion ID and label
  2. Create conversion linker tag
  3. Create conversion tag with trigger
  4. Test conversion tracking
  5. Verify in Google Ads

Debugging

# Verbose health check
npx @akson/​cortex-analytics health --verbose

# Check specific platform
npx @akson/​cortex-analytics gtm status --container GTM-T8WRBMWV

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View