AgentHubAgentHub

gtm-ga4

MCP ServerMCP Registry官方收录

io.github.mharnett/gtm-ga4 · v1.0.1

GTM + GA4 MCP: tag management, consent auditing, workspace versioning, reports.

概览

gtm-ga4 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "gtm-ga4": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-gtm-ga4"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
        "GTM_ACCOUNT_ID": "<GTM_ACCOUNT_ID>",
        "GTM_CONTAINER_ID": "<GTM_CONTAINER_ID>"
      }
    }
  }
}

环境变量

GOOGLE_APPLICATION_CREDENTIALS必填

Path to service account JSON credentials file

GTM_ACCOUNT_ID必填

GTM account ID

GTM_CONTAINER_ID必填

GTM container ID

GA4_PROPERTY_ID可选

GA4 property ID (numeric)

相关资源

统一 Manifest

{
  "id": "io.github.mharnett/gtm-ga4",
  "type": "mcp-server",
  "version": "1.0.1",
  "displayName": "gtm-ga4",
  "description": "GTM + GA4 MCP: tag management, consent auditing, workspace versioning, reports.",
  "repository": {
    "url": "https://github.com/mharnett/mcp-gtm-ga4",
    "source": "github"
  },
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "mcp-gtm-ga4",
        "version": "1.0.1",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "GOOGLE_APPLICATION_CREDENTIALS",
            "description": "Path to service account JSON credentials file",
            "isRequired": true
          },
          {
            "name": "GTM_ACCOUNT_ID",
            "description": "GTM account ID",
            "isRequired": true
          },
          {
            "name": "GTM_CONTAINER_ID",
            "description": "GTM container ID",
            "isRequired": true
          },
          {
            "name": "GA4_PROPERTY_ID",
            "description": "GA4 property ID (numeric)"
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.mharnett/gtm-ga4",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.mharnett%2Fgtm-ga4/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
gtm-ga4 — MCP Server 安装与配置 · AgentHub