One-click install
npx skills add https://github.com/sem-technology/gtm-copilot --skill gtm-copilot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gtm-copilot
Source: https://github.com/sem-technology/gtm-copilot/tree/main
Command: npx skills add https://github.com/sem-technology/gtm-copilot --skill gtm-copilot

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

GTM implementations often require repetitive, error-prone work to export existing containers, apply structured changes, and sync updates back to Google Tag Manager—this Skill streamlines that full workflow.

Core Features & Use Cases

  • OAuth2 authentication for GTM API access: generate and refresh the tokens required to call the GTM Tag Manager API.
  • Export GTM state to JSON: retrieve tags, triggers, variables, and built-in variables and save them as editable snapshots.
  • AI-assisted import & synchronization: update or create GTM components from edited JSON (including dependency resolution by name), with content-based skipping to avoid unnecessary API calls.
  • Audit workflow support: use bundled audit checkpoints to review exported configurations and report issues, risks, and recommendations without modifying or importing changes unless explicitly instructed.

Quick Start

Ask your agent to export your current GTM workspace to JSON, modify the exported files for the changes you want, then run the import to sync those updates back to the container.

Frequently Asked Questions about gtm-copilot

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

FAQPage Schema
How do I automate Google Tag Manager configuration export and import?

You can automate Google Tag Manager configuration workflows by exporting containers to JSON, applying structured edits, and synchronizing updates back via API calls with dependency resolution.

Can I bulk update GTM tags, triggers, and variables from a JSON file?

Yes, you can import and synchronize GTM tags, triggers, and variables from edited JSON files, automatically resolving dependencies by name and skipping unchanged items via content hashing.

How does OAuth2 authentication work for GTM API automation?

OAuth2 authentication for GTM API automation requires setting credentials in environment variables to generate and refresh the tokens needed for deterministic Google Tag Manager API calls.

What is the best way to audit a Google Tag Manager container before deploying changes?

Auditing a Google Tag Manager container involves exporting the current state to JSON and evaluating it against bundled checkpoints to report configuration issues and risks without modifying the container.

Does the GTM import synchronization overwrite existing tags and triggers?

Import synchronization updates or creates GTM components from edited JSON files, resolving dependencies by name and using content-based skipping to avoid unnecessary API overwrites of existing tags and triggers.

Why are my GTM API calls failing during automated import synchronization?

GTM API calls during import synchronization require valid OAuth2 credentials in environment variables and correctly structured JSON configurations to successfully resolve dependencies and deploy changes.