Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pp-google-tag-manager

БесплатноБез исполняемых скриптовНе проверен

Mirror any GTM container into a local database, then audit, diff Trigger phrases: `audit my GTM container`, `diff my GTM workspace against live`, `what GA4…

mvanhornот mvanhorn★ 2 170 звёзд на GitHub

Об этом скилле

Google Tag Manager — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the google-tag-manager-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:
    npx -y @mvanhorn/printing-press-library install google-tag-manager --cli-only
    
  2. Verify: google-tag-manager-pp-cli --version
  3. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.4 or newer). This installs into $GOPATH/bin (default $HOME/go/bin), so add that directory to $PATH instead:

go install github.com/mvanhorn/printing-press-library/library/marketing/google-tag-manager/cmd/google-tag-manager-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

The Google Tag Manager console can't diff anything, can't bulk-query, can't cross-reference the tag/trigger/variable graph, and can't export to version control. This CLI pulls a container into local SQLite and turns all of that into one command: audit hygiene, diff workspace-vs-live or container-vs-container, inventory GA4 ids and Consent Mode coverage across your whole fleet, and full-text search every parameter. It is read-only by construction — the mutating endpoints are stripped, so it is safe to point at a production container.

When to Use This CLI

Use this CLI to audit, diff, export, and query Google Tag Manager container configuration from the terminal, CI, or an agent. It is the right tool for hygiene checks before a release, comparing two containers or a workspace against live, inventorying GA4 ids and Consent Mode coverage across many containers, and full-text search over tag/trigger/variable config. It is read-only — it never creates, edits, deletes, or publishes.

Anti-triggers

Do not use this CLI for:

  • Do not use this CLI to create, edit, delete, or publish tags, triggers, variables, or versions — it is read-only by design; use the GTM console or the write API for changes.
  • Do not use it to render or test tag firing in a browser; it reads configuration, not runtime behavior — use Google Tag Assistant for live firing tests.
  • Do not use it for Google Analytics report data; this is GTM container configuration, not GA4 analytics.

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Local mirror that compounds

  • pull — Walk an entire GTM container — every tag, trigger, variable, folder, template, client, zone, and gtag config — into a local SQLite store in one command.

    Reach for this first — every other command reads the mirror, and re-pulls become time-stamped snapshots for history/drift.

    google-tag-manager-pp-cli pull --account 6012345 --container 9876543 --live
    
  • export — Emit a deterministic flattened representation of the container for clean version-control diffs, or container-export-compatible JSON.

    Use to check GTM config into git and review changes in pull requests.

    google-tag-manager-pp-cli export --flat
    

Hygiene, compliance & governance

  • audit — Run a battery of hygiene checks against the mirror: dead tags, orphan triggers, unused variables, paused tags, Custom HTML tags, and tags firing on All Pages.

    Use to gate a release in CI or sanity-check a container before publishing; typed exit code fails the build on high-severity findings.

    google-tag-manager-pp-cli audit --json --fail-on high
    
  • consent-report — Per-tag consentSettings coverage and a list of tags that fire without consent gating, classified by vendor (ads vs analytics).

    Use to answer 'are we Consent Mode v2 compliant for the EEA' without clicking through every tag.

    google-tag-manager-pp-cli consent-report --json
    

Diff & fleet visibility

  • diff — Field-level diff between two snapshots: workspace vs live, version vs version, or container vs container, with stable name+type keys so renames are not add+remove.

    Use before publishing to see exactly what changed, or to compare two properties' containers.

    google-tag-manager-pp-cli diff live workspace:7
    
  • fleet

Полный SKILL.md на GitHub

Установить pp-google-tag-manager в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Bash

FAQ

Что делает скилл pp-google-tag-manager?

Mirror any GTM container into a local database, then audit, diff Trigger phrases: `audit my GTM container`, `diff my GTM workspace against live`, `what GA4 ids are in my tag manager`, `check consent mode coverage`, `what fires on this GTM trigger`, `use google-tag-manager`, `run google-tag-manager`.

Как установить скилл pp-google-tag-manager?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pp-google-tag-manager запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить pp-google-tag-manager с