Skip to content
Windsurf

gtm ga4 for Windsurf

io.github.mharnett/gtm-ga4

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

client:Windsurf transport:stdio runtime:npm

Install gtm ga4 in Windsurf

~/.codeium/windsurf/mcp_config.json · windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "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>",
        "GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>"
      }
    }
  }
}

Global only — Windsurf has no per-project MCP config. Refresh Cascade after saving. Windsurf docs

gtm ga4 in other clients