Skip to main content
Glama
webanalyticsprobd-maker

Web Analytics & Tracking MCP Server

Web Analytics & Tracking MCP Server

A production-ready Model Context Protocol (MCP) server for Google Tag Manager (GTM), Google Analytics 4 (GA4) Measurement Protocol, DataLayer schema validation, Meta CAPI auditing, and tracking code snippet generation.

Build Status TypeScript License


📌 Features

  • 🎯 DataLayer Schema Validator: Automatically validates GTM dataLayer.push objects against GA4 e-commerce schemas (purchase, add_to_cart, lead, etc.).

  • 🚀 GA4 Measurement Protocol Event Transmitter: Transmits server-side events directly to Google Analytics 4 via Measurement Protocol API.

  • 🛠️ Tracking Code Snippet Generator: Generates production-ready code snippets for GTM window.dataLayer.push, GA4 gtag.js, and React tracking hooks.

  • 📊 Tracking Quality & EMQ Auditor: Audits tracking event payloads for GA4 and Meta Conversions API (CAPI), scoring readiness from 0-100 and providing recommendations.

  • 📑 Built-in Specification Resource: Exposes static GA4 e-commerce standard schemas as an MCP resource (ga4://spec/ecommerce).


Related MCP server: google-analytics-mcp

🛠️ Quick Start

1. Prerequisites

  • Node.js: v18.0.0 or higher

  • npm: v9.0.0 or higher

2. Installation & Build

# Clone repository
git clone https://github.com/webanalyticsprobd-maker/tracking-mcp-server.git
cd tracking-mcp-server

# Install dependencies
npm install

# Compile TypeScript
npm run build

3. Environment Setup (Optional)

Copy .env.example to .env and fill in your GA4 credentials if you plan to send live server-side Measurement Protocol events:

GA4_MEASUREMENT_ID=G-XXXXXXXXXX
GA4_API_SECRET=your_ga4_api_secret_here

⚙️ How to Connect to MCP Clients

Cursor IDE Configuration

Add the following snippet to your Cursor MCP Tools settings or .cursor/mcp.json:

{
  "mcpServers": {
    "tracking-analytics-server": {
      "command": "node",
      "args": ["C:/path/to/tracking-mcp-server/dist/index.js"],
      "env": {
        "GA4_MEASUREMENT_ID": "G-XXXXXXXXXX",
        "GA4_API_SECRET": "your_api_secret"
      }
    }
  }
}

Claude Desktop Configuration

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "tracking-analytics-server": {
      "command": "node",
      "args": ["C:/path/to/tracking-mcp-server/dist/index.js"]
    }
  }
}

📄 License

Licensed under the MIT License.

Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    A
    maintenance
    Production-grade MCP server for the Google Tag Manager API v2 with read-only GA4 (Admin + Data API) tooling. 107 tools covering the full GTM surface, including server-side containers. Ships read-only: writes, publishes, and deletes are each gated behind separate opt-in flags, every mutation requires per-call confirmation, and a dry-run mode simulates changes. Includes container audits
    100
    8,216
    1
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A powerful Model Context Protocol (MCP) server that provides comprehensive Google Analytics 4 (GA4), Google Search Console (GSC), and Google Merchant Center (GMC) integration for Claude Desktop and other MCP clients.
    Apache 2.0
  • A
    license
    A
    quality
    A
    maintenance
    MCP server for Google Tag Manager and GA4, enabling tag management, consent auditing, workspace versioning, and analytics reporting through natural language.
    18
    55
    2
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Production-ready MCP server integrating Google Search Console, GA4, and PageSpeed Insights for SEO and analytics intelligence, enabling natural-language queries to Google analytics data.

View all related MCP servers

Related MCP Connectors

  • Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.

  • MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.

  • Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/webanalyticsprobd-maker/tracking-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server