Connector guide1-minute read8 MCP toolsEN · DE · IT

Google Analytics 4 AI 洞察 — 异常检测、用通俗语言诊断流量

GA4 把答案藏在 30 次点击之后。用通俗中文问 Claude 或 ChatGPT: 「上周二流量为什么下降?」「本月哪些 UTM 转化最好?」。GA4 MCP 连接器直接对接 Data API。

HCBy HelpCode teamUpdated 1 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

Google Analytics 4

MCP connector

Google Analytics 4

Query Google Analytics 4 (account/property metadata, custom dimensions/metrics, core reports, realtime reports, funnel reports) from any AI agent. 8 tools, OAuth2 user auth.

Tools

8

Region

INTL

Category

analytics

Authentication

OAuth 2.0

Required env vars

GOOGLE_CLIENT_IDGOOGLE_CLIENT_SECRETGOOGLE_REFRESH_TOKEN
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Source-available BSL-1.1
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Google Analytics 4 in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

GA4 把答案藏在 30 次点击之后。用通俗中文问 Claude 或 ChatGPT: 「上周二流量为什么下降?」「本月哪些 UTM 转化最好?」。GA4 MCP 连接器直接对接 Data API。

试试这样问

Google Analytics 4 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Google Analytics 4 · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

Google Analytics 4

Google Analytics 4 AI 洞察

GA4 有数据。取出来需要懂 Explore 报告、维度、指标定义,并点击 4 层菜单来构建正确的分段。问题 「上周二流量为什么下降?」 的答案就在那里。找到它需要 20 分钟。有了 AnythingMCP 的 GA4 连接器,Claude 和 ChatGPT 直接查询 GA4 Data API。

你可以问什么

需求示例提示
流量异常「为什么上周二流量比前一周二下降? 按 source / medium 分解。」
顶级来源「过去 30 天按转化的前 10 个引荐来源,含转化率。」
营销活动 ROI「UTM 活动 'spring_sale' 的转化率 vs 站点平均 — 过去 7 天。」
漏斗诊断「漏斗: 落地 → 产品 → 购物车 → 结账 — 每步流失率,过去 14 天。」
移动 vs 桌面「按国家分的移动 vs 桌面转化率 — 过去 30 天。」
实时「现在网站上有多少活跃用户,按 source 分。」
页面级「本周相比上周 pageviews 下降最大的 10 个页面?」
队列保留「2026 年 3 月注册用户 Day-1、Day-7、Day-30 保留率,按获取渠道分。」
事件审计「我是否在发送过去 7 天没有值的自定义事件? 可能是追踪 bug。」

Always-on 模式

用 cron 调度提示 — 24/7 分析守门犬: 每天 9 点昨天 vs 前天 — 任何变化超过 20% 的指标,按显著性排序; 每周一周度高管摘要; 发布期间每小时活跃用户 + 转化率 + 顶级落地页。

为什么超过 GA4 UI

Google Analytics 4Google Analytics 4 + AI
「为什么流量下降?」Explore 中 20 分钟一条提示,分级分解
跨维度 join构建自定义报告提示中内联
定期报告手动邮件导出Cron + 摘要
非分析师入职数小时 UI 培训自然语言
异常检测内置警报 (有限)自定义 AI 逻辑
叙事手动选图表LLM 叙述

设置说明 + 2 分钟开始

GA4 Data API 需要 OAuth 2.0 + service account JSON。需要: 启用了 GA4 Data API 的 Google Cloud 项目; 对 GA4 property 拥有 Viewer 角色的 service account; service account JSON 密钥。最快路径是 AnythingMCP Cloud: 一键安装 GA4 连接器,粘贴 GA4_SERVICE_ACCOUNT_JSON + GA4_PROPERTY_ID,生成 MCP API 密钥。两次点击,无需工程经验。

开始

  1. 选择 AI 客户端。
  2. 跟随 3 步指南。
  3. 第一个提示: 「比较昨天的会话 vs 上周同一天,按 source — 发生了什么变化?」

选择 AI 客户端

这份指南对你有帮助吗?

Ready to ship

Your Google agent is one click away.

Install the connector, paste the key, prompt your AI client. Free for 7 days, no credit card.

相关指南