These guides show you how to connect Google Analytics 4 to external systems and AI assistants. You learn to pull raw report data into your own applications, manage account settings programmatically, and send events from server-side environments. The first guide covers the GA4 API suite: the Data API for running reports, the Admin API for configuring properties, and the Measurement Protocol for sending hits directly to GA4. It walks you through the fundamentals and points you to the resources you need to begin making API calls. The second guide introduces the official Google Analytics MCP server, which lets you query your GA4 data using natural language in tools like Claude, Gemini, or Cursor. You see how to set up the server, understand its read-only access model, and work within the quota limits that apply. Together, these guides give you the foundation to integrate GA4 data into your workflows and automate reporting tasks.
API And Integration Guides
- The GA4 API Explained: Data, Admin And Measurement ProtocolThe GA4 API includes Data API, Admin API, and Measurement Protocol to pull reports, manage settings, and send server-side events. Learn how to get started.
- The Google Analytics MCP Server: Query GA4 From Claude And Other AI ToolsUse the official Google Analytics MCP server to ask GA4 questions in Claude, Gemini, or Cursor. Setup steps, read-only access, and quota limits explained.
Browse all GA4 guides.