본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

google-tag-manager

simonfunk 제작

Web & Frontend Development
426clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Manage Google Tag Manager containers, tags, triggers, variables, and versions via the GTM API v2.

설명

이 스킬이 하는 일

Manages Google Tag Manager containers, tags, triggers, variables, and versions through the GTM API v2. All operations run via a shell script that wraps authenticated API calls. Covers the full publish workflow from workspace changes to live container versions.

Scripting GTM changes through the API is faster and more repeatable than clicking through the GTM web interface, especially for environments with many containers or frequent deployments.

사용 시점

  • Adding a Google Ads conversion tag to a container without touching the GTM UI
  • Publishing a new container version after a batch of tag changes
  • Auditing all triggers and variables in a GTM workspace
  • Enabling built-in variables for dataLayer event tracking
  • Setting up cross-domain tracking linker tags programmatically

예시 워크플로

입력

User asks: Add a conversion tag with a custom event trigger, then publish it

에이전트
  1. 1

    Creates a custom event trigger from a JSON definition using create-trigger

  2. 2

    Creates a Google Ads conversion tag referencing the new trigger using create-tag

  3. 3

    Creates a named container version from the current workspace using create-version

  4. 4

    Publishes the version to make it live using publish with the returned versionId

출력

A new container version is published with the conversion tag active on the target site

요구 사항

  • GTM_ACCOUNT_ID environment variable (numeric account ID from tagmanager.google.com)
  • GTM_CONTAINER_ID environment variable (numeric container ID)
  • GOOGLE_APPLICATION_CREDENTIALS environment variable (path to Google Cloud service account JSON key file)
  • Google Cloud service account with Tag Manager API enabled and GTM user access granted

설치

clawhub install simonfunk/google-tag-manager

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크