gtm ga4 for VS Code
io.github.mharnett/gtm-ga4
GTM + GA4 MCP: tag management, consent auditing, workspace versioning, reports.
client:VS Code
transport:stdio
runtime:npm
Install gtm ga4 in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "google-application-credentials",
"description": "GOOGLE_APPLICATION_CREDENTIALS",
"password": true
},
{
"type": "promptString",
"id": "gtm-account-id",
"description": "GTM_ACCOUNT_ID",
"password": true
},
{
"type": "promptString",
"id": "gtm-container-id",
"description": "GTM_CONTAINER_ID",
"password": true
},
{
"type": "promptString",
"id": "ga4-property-id",
"description": "GA4_PROPERTY_ID",
"password": true
}
],
"servers": {
"gtm-ga4": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-gtm-ga4"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "${input:google-application-credentials}",
"GTM_ACCOUNT_ID": "${input:gtm-account-id}",
"GTM_CONTAINER_ID": "${input:gtm-container-id}",
"GA4_PROPERTY_ID": "${input:ga4-property-id}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs