# Google Analytics — MCP server on mcp.ai > Google Analytics tracks and reports website traffic, user behavior, and conversion data, enabling marketers to optimize online performance and customer journeys By: mcp.ai · official Page: https://mcp.ai/google_analytics ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_google_analytics?ms=1781542200000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/google_analytics/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/google_analytics/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/google_analytics/skill.md Postman collection (v2.1): https://mcp.ai/google_analytics/postman.json ## Tools - google_analytics_create_expanded_data_set(parent: string, expandedDataSet: object) — Tool to create an expanded data set for a property. use when you need to combine specific dimensions and metrics into a custom dataset after property creation. - google_analytics_get_account(name: string) — Tool to retrieve a single account by its resource name. use when you need detailed account info after confirming the account resource name (e.g., accounts/100). - google_analytics_list_accounts(pageSize?: integer, pageToken?: string, showDeleted?: boolean) — Tool to list all accounts accessible by the caller. use when you need to enumerate all google analytics accounts your credentials can access. - google_analytics_list_audiences(parent: string, pageSize?: integer, pageToken?: string) — Tool to list all audiences on a property. use when you need to fetch all audiences for a ga4 property after confirming its existence. ## Links Docs: https://mcp.ai/docs/mcps/google_analytics Website: https://mcp.ai/mcps/google_analytics