lucianfialho/gmp-cli/gmp-gtm

Claude Code and agent skill by lucianfialho/gmp-cli

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Google Tag Manager: Accounts, containers, tags, triggers, variables, and versions.

Install

npx vskill@latest install lucianfialho/gmp-cli/gmp-gtm

SKILL.md

gtm (Google Tag Manager API v2)

PREREQUISITE: Read ../gmp-shared/SKILL.md for auth, global flags, and output formats.
bash
gmp gtm <command> [flags]

Commands

CommandDescription
accountsList GTM accounts
containersList containers for an account
tagsList tags in a container workspace
triggersList triggers in a container workspace
variablesList variables in a container workspace
versionsList published container versions

Quick Reference

List accounts and containers
bash
gmp gtm accounts
gmp gtm containers -a ACCOUNT_ID
List tags, triggers, and variables
bash
# Uses default workspace automatically
gmp gtm tags -p accounts/X/containers/Y -f table
gmp gtm triggers -p accounts/X/containers/Y -f table
gmp gtm variables -p accounts/X/containers/Y -f table
# Specific workspace
gmp gtm tags -p accounts/X/containers/Y -w 3 -f table
List published versions
bash
gmp gtm versions -p accounts/X/containers/Y -f table
gmp gtm versions -p accounts/X/containers/Y -l 5 -f table

Container Path Format

All tag/trigger/variable/version commands require a container path:

accounts/{ACCOUNT_ID}/containers/{CONTAINER_ID}

Get the account ID from gmp gtm accounts and container ID from gmp gtm containers -a ACCOUNT_ID.

Workspace Behavior

  • Default: -w 0 uses the "Default Workspace" automatically.
  • Specify -w <ID> for a specific workspace.
  • The CLI resolves the default workspace by listing workspaces and picking "Default Workspace" or the first available.

Output Columns

Table and CSV output is simplified. JSON output includes full API fields — use -f json for audits and automation.

Tags (-f table)
ColumnDescription
tagIdTag ID
nameTag name
typeTag type (e.g. ua, awct, html, gaawe)
firingTriggerIdComma-separated trigger IDs
pausedWhether the tag is paused
Tags (-f json — additional fields)
FieldDescription
parameterFull parameter array (measurementId, eventName, eventParameters, etc.)
blockingTriggerIdArray of blocking trigger IDs
fingerprintTag fingerprint
pathFull resource path
Triggers (-f table)
ColumnDescription
triggerIdTrigger ID
nameTrigger name
typeTrigger type (e.g. pageview, click, customEvent)
Triggers (-f json — additional fields)
FieldDescription
filterTrigger condition filters
autoEventFilterAuto-event filters
parameterTrigger parameter array
fingerprintTrigger fingerprint
pathFull resource path
Variables (-f table)
ColumnDescription
variableIdVariable ID
nameVariable name
typeVariable type (e.g. v, jsm, gas)
Variables (-f json — additional fields)
FieldDescription
parameterVariable parameter array
fingerprintVariable fingerprint
pathFull resource path

Tips

  • Get the container path from gmp gtm containers -a ACCOUNT_ID -- use the path column.
  • Tags, triggers, and variables are workspace-scoped. Use -w 0 for the default workspace.
  • Use gmp gtm versions to see publish history and compare tag/trigger/variable counts across versions.
  • Pipe to jq for analysis: gmp gtm tags ... -f json | jq '[.[] | select(.type == "html")]'
  • Unused variable audit: extract all {{VarName}} references from parameter[].value across tags, triggers, and variables, then diff against the variables list.
bash
# Find all variable references used in tags
gmp gtm tags -p accounts/X/containers/Y -f json \
| jq -r '[.[].parameter[]? | .. | strings | scan("\\{\\{([^}]+)\\}\\}")][] ' \
| sort -u

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/lucianfialho/gmp-cli/gmp-gtm/badge)](https://verified-skill.com/skills/lucianfialho/gmp-cli/gmp-gtm)

Something wrong with this skill or its page? Tell us.