{
  "schemaVersion": "1.0",
  "item": {
    "slug": "google-tag-manager",
    "name": "Google Tag Manager",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/simonfunk/google-tag-manager",
    "canonicalUrl": "https://clawhub.ai/simonfunk/google-tag-manager",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/google-tag-manager",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=google-tag-manager",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/api-reference.md",
      "references/recipes.md",
      "scripts/gtm.sh"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/google-tag-manager"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/google-tag-manager",
    "agentPageUrl": "https://openagent3.xyz/skills/google-tag-manager/agent",
    "manifestUrl": "https://openagent3.xyz/skills/google-tag-manager/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/google-tag-manager/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Google Tag Manager Skill",
        "body": "Interact with the GTM API v2 to manage containers, workspaces, tags, triggers, variables, and versions."
      },
      {
        "title": "Authentication",
        "body": "The GTM API uses OAuth2 via a Google Cloud service account."
      },
      {
        "title": "Setup",
        "body": "Enable Tag Manager API in Google Cloud Console\nCreate a service account with key (JSON)\nGrant the service account access in GTM (Admin → User Management → add service account email)\nSet env vars:\n\nGOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json\nGTM_ACCOUNT_ID=123456\nGTM_CONTAINER_ID=789012"
      },
      {
        "title": "Script",
        "body": "All operations use scripts/gtm.sh. Run without args to see usage:\n\nscripts/gtm.sh <command> [args...]"
      },
      {
        "title": "Commands",
        "body": "CommandDescriptionaccountsList all GTM accountscontainers [accountId]List containers in accountworkspacesList workspaces in containertags [workspaceId]List tags in workspace (default: latest)tag <tagId> [workspaceId]Get a specific tagcreate-tag <jsonFile> [workspaceId]Create a tag from JSONupdate-tag <tagId> <jsonFile> [workspaceId]Update a tagdelete-tag <tagId> [workspaceId]Delete a tagtriggers [workspaceId]List triggerstrigger <triggerId> [workspaceId]Get a specific triggercreate-trigger <jsonFile> [workspaceId]Create a trigger from JSONupdate-trigger <triggerId> <jsonFile> [workspaceId]Update a triggerdelete-trigger <triggerId> [workspaceId]Delete a triggervariables [workspaceId]List variablesvariable <variableId> [workspaceId]Get a specific variablecreate-variable <jsonFile> [workspaceId]Create a variable from JSONupdate-variable <variableId> <jsonFile> [workspaceId]Update a variabledelete-variable <variableId> [workspaceId]Delete a variablebuilt-in-vars [workspaceId]List enabled built-in variablesenable-built-in <type,...> [workspaceId]Enable built-in variable(s)versionsList container version headersversion <versionId>Get a specific versionversion-liveGet the live (published) versioncreate-version [workspaceId] [name] [notes]Create version from workspacepublish <versionId>Publish a container version"
      },
      {
        "title": "Workspace Resolution",
        "body": "Most commands accept an optional workspaceId. If omitted, the script auto-resolves to the Default Workspace (the first workspace returned by the API — typically \"Default Workspace\")."
      },
      {
        "title": "Create a Google Ads Conversion Tag",
        "body": "See references/recipes.md for JSON templates for:\n\nGoogle Ads Conversion Tracking tag\nGA4 Event tag\nCustom Event trigger (dataLayer)\nCross-domain tracking linker"
      },
      {
        "title": "Workflow: Add Tag → Create Version → Publish",
        "body": "# 1. Create trigger\nscripts/gtm.sh create-trigger trigger.json\n\n# 2. Create tag referencing the trigger\nscripts/gtm.sh create-tag tag.json\n\n# 3. Create version from workspace\nscripts/gtm.sh create-version \"\" \"v1.2 - Added conversion tag\"\n\n# 4. Publish\nscripts/gtm.sh publish <versionId>"
      },
      {
        "title": "API Reference",
        "body": "For full resource schemas and trigger types, see references/api-reference.md."
      }
    ],
    "body": "Google Tag Manager Skill\n\nInteract with the GTM API v2 to manage containers, workspaces, tags, triggers, variables, and versions.\n\nAuthentication\n\nThe GTM API uses OAuth2 via a Google Cloud service account.\n\nSetup\nEnable Tag Manager API in Google Cloud Console\nCreate a service account with key (JSON)\nGrant the service account access in GTM (Admin → User Management → add service account email)\nSet env vars:\nGOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json\nGTM_ACCOUNT_ID=123456\nGTM_CONTAINER_ID=789012\nScript\n\nAll operations use scripts/gtm.sh. Run without args to see usage:\n\nscripts/gtm.sh <command> [args...]\n\nCommands\nCommand\tDescription\naccounts\tList all GTM accounts\ncontainers [accountId]\tList containers in account\nworkspaces\tList workspaces in container\ntags [workspaceId]\tList tags in workspace (default: latest)\ntag <tagId> [workspaceId]\tGet a specific tag\ncreate-tag <jsonFile> [workspaceId]\tCreate a tag from JSON\nupdate-tag <tagId> <jsonFile> [workspaceId]\tUpdate a tag\ndelete-tag <tagId> [workspaceId]\tDelete a tag\ntriggers [workspaceId]\tList triggers\ntrigger <triggerId> [workspaceId]\tGet a specific trigger\ncreate-trigger <jsonFile> [workspaceId]\tCreate a trigger from JSON\nupdate-trigger <triggerId> <jsonFile> [workspaceId]\tUpdate a trigger\ndelete-trigger <triggerId> [workspaceId]\tDelete a trigger\nvariables [workspaceId]\tList variables\nvariable <variableId> [workspaceId]\tGet a specific variable\ncreate-variable <jsonFile> [workspaceId]\tCreate a variable from JSON\nupdate-variable <variableId> <jsonFile> [workspaceId]\tUpdate a variable\ndelete-variable <variableId> [workspaceId]\tDelete a variable\nbuilt-in-vars [workspaceId]\tList enabled built-in variables\nenable-built-in <type,...> [workspaceId]\tEnable built-in variable(s)\nversions\tList container version headers\nversion <versionId>\tGet a specific version\nversion-live\tGet the live (published) version\ncreate-version [workspaceId] [name] [notes]\tCreate version from workspace\npublish <versionId>\tPublish a container version\nWorkspace Resolution\n\nMost commands accept an optional workspaceId. If omitted, the script auto-resolves to the Default Workspace (the first workspace returned by the API — typically \"Default Workspace\").\n\nCommon Recipes\nCreate a Google Ads Conversion Tag\n\nSee references/recipes.md for JSON templates for:\n\nGoogle Ads Conversion Tracking tag\nGA4 Event tag\nCustom Event trigger (dataLayer)\nCross-domain tracking linker\nWorkflow: Add Tag → Create Version → Publish\n# 1. Create trigger\nscripts/gtm.sh create-trigger trigger.json\n\n# 2. Create tag referencing the trigger\nscripts/gtm.sh create-tag tag.json\n\n# 3. Create version from workspace\nscripts/gtm.sh create-version \"\" \"v1.2 - Added conversion tag\"\n\n# 4. Publish\nscripts/gtm.sh publish <versionId>\n\nAPI Reference\n\nFor full resource schemas and trigger types, see references/api-reference.md."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/simonfunk/google-tag-manager",
    "publisherUrl": "https://clawhub.ai/simonfunk/google-tag-manager",
    "owner": "simonfunk",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/google-tag-manager",
    "downloadUrl": "https://openagent3.xyz/downloads/google-tag-manager",
    "agentUrl": "https://openagent3.xyz/skills/google-tag-manager/agent",
    "manifestUrl": "https://openagent3.xyz/skills/google-tag-manager/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/google-tag-manager/agent.md"
  }
}