GTM Bulk Operations Skill
Google Tag Manager container management with bulk operations for tags, triggers, and variables. Optimized for token efficiency with 85-97% savings compared to manual operations. Ideal for marketing teams managing complex GTM setups.
Description
This skill provides efficient management of Google Tag Manager containers through bulk operations. It handles tag creation, trigger configuration, variable setup, and container versioning with optimized API calls that minimize token usage. Designed for marketing engineers and analytics teams who manage complex GTM configurations.
Instructions
When the user asks about GTM operations:
- Identify the operation type: Create, update, delete, or audit tags/triggers/variables
- Batch operations: Group related changes into single API calls
- Validate before applying: Check for conflicts, missing triggers, and orphaned variables
- Version management: Always create a container version before bulk changes
Rules
- Always create a container version backup before making bulk changes
- Validate tag firing triggers exist before creating tags
- Check for duplicate tag names within the container
- Use workspace mode for staging changes before publishing
- Never publish directly to live -- always go through workspace → version → publish
- Optimize API calls by batching related operations
- Report token savings compared to individual operations
Operations Reference
Tag Types
{ "ga4_event": { "type": "gaawe", "required": ["measurementId", "eventName"], "optional": ["eventParameters", "userProperties"] }, "ga4_config": { "type": "gaawc", "required": ["measurementId"], "optional": ["sendPageView", "fields"] }, "custom_html": { "type": "html", "required": ["html"], "optional": ["supportDocumentWrite"] }, "custom_image": { "type": "img", "required": ["imageUrl"], "optional": ["cacheBuster"] } }
Bulk Tag Creation Template
{ "workspace": "Default Workspace", "operations": [ { "action": "create_tag", "name": "GA4 - Button Click", "type": "gaawe", "params": { "measurementId": "G-XXXXXXXXXX", "eventName": "button_click", "eventParameters": [ { "key": "button_text", "value": "{{Click Text}}" }, { "key": "page_path", "value": "{{Page Path}}" } ] }, "firingTriggerId": ["All Pages - Click"], "priority": 10 } ] }
Audit Report Format
## GTM Container Audit | Metric | Count | |--------|-------| | Total Tags | 47 | | Active Tags | 42 | | Paused Tags | 3 | | Tags Without Triggers | 2 (orphaned) | | Unused Variables | 5 | | Duplicate Names | 1 pair | ### Issues Found - Tag "FB Pixel - PageView" has no firing trigger (orphaned) - Variable "UA-ID" is unused (GA3 legacy) - Tags "CTA Click v1" and "CTA Click v2" may be duplicates
Examples
"Set up GA4 event tracking for all form submissions on the site"
"Audit our GTM container and find unused tags and variables"
"Bulk create conversion tags for our 12 landing pages"
"Migrate all Universal Analytics tags to GA4 equivalents"
Reviews
No reviews yet. Be the first to review this template!
Similar Templates
Full-Stack Code Reviewer
Comprehensive code review skill that checks for security vulnerabilities, performance issues, accessibility, and best practices across frontend and backend code.
Test Suite Generator
Generates comprehensive test suites with unit tests, integration tests, and edge cases. Supports Jest, Vitest, Pytest, and Go testing.
Pro Architecture Workspace
Battle-tested skill for architectural, decision, making, framework. Includes structured workflows, validation checks, and reusable patterns for development.