google-tag-manager

Configure Google Tag Manager tags, triggers, variables, and versioned workspaces via API.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/redbananastudios/ai-library --skill google-tag-manager-redbananastudios
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-tag-manager
Source: https://github.com/redbananastudios/ai-library/tree/main/generated/claude/skills/google-tag-manager
Command: npx skills add https://github.com/redbananastudios/ai-library --skill google-tag-manager-redbananastudios

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralizes reliable tracking setup by managing Google Tag Manager containers, workspaces, tags, triggers, variables, and versioned publishing without risky manual edits.

Core Features & Use Cases

  • GTM API workspace management: create or update workspaces for tracking changes while preserving rollback-friendly version snapshots.
  • GA4 and conversion instrumentation: deploy GA4 event tags, conversion tracking (e.g., generate_lead), and firing logic driven by custom events.
  • dataLayer contract + governance: define and enforce event/parameter naming conventions and prevent PII from entering dataLayer.
  • Multi-platform pixel setup: configure Meta/LinkedIn/TikTok pixel deployments and custom event firing patterns.

Quick Start

Ask the AI to generate a GTM dataLayer event contract and the exact GTM API objects (workspace, trigger, tag, variables, and version name) needed to fire a GA4 generate_lead conversion when a contact form is submitted.

Frequently Asked Questions about google-tag-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy GA4 conversion tracking and Meta pixels using the Google Tag Manager API?

You can deploy GA4 conversion tracking and Meta pixels using the Google Tag Manager API by programmatically configuring tags, triggers, and variables within versioned workspaces to ensure safe, rollback-friendly publishing without manual edits.

What is a dataLayer contract and how does it prevent PII in Google Tag Manager?

A dataLayer contract is a governance framework that defines and enforces structured event and parameter naming conventions in Google Tag Manager, ensuring that custom events fire correctly while actively preventing PII from entering the dataLayer.

How do I set up consent mode v2 safe firing for TikTok and LinkedIn pixels in GTM?

Setting up consent mode v2 safe firing for TikTok and LinkedIn pixels in GTM involves applying preview-first guardrails and specific firing logic to tags so they respect user consent states before deploying tracking scripts.

Can I use the GTM API to create rollback-friendly version snapshots for multi-platform tracking setups?

Yes, you can use the GTM API to create or update workspaces for multi-platform tracking setups, generating versioned snapshots that preserve rollback capabilities and prevent risky manual container edits.

What is the best way to fire a GA4 generate_lead event when a contact form is submitted?

The best way to fire a GA4 generate_lead event on form submission is to generate a dataLayer event contract and map the exact GTM API objects, including custom triggers and variables, to fire the conversion tag.

Do I need versioned workspace publishing to configure custom event tracking in Google Tag Manager?

Versioned workspace publishing is required to safely configure custom event tracking in Google Tag Manager, as it applies preview-first guardrails and maintains structured snapshots to prevent breaking existing tag configurations.