Community研究与数据分析github.com

The-AlexLiu/GA4-Reader-Skill

让飞书 Aily 与 WorkBuddy 通过自然语言安全读取 GA4 的双平台 Skill 与 Reader API

GA4-Reader-Skill 是什么?

GA4-Reader-Skill is a Claude Code agent skill that 让飞书 Aily 与 WorkBuddy 通过自然语言安全读取 GA4 的双平台 Skill 与 Reader API.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add The-AlexLiu/GA4-Reader-Skill

Installed? Explore more 研究与数据分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

GA4 Reader for Feishu Aily

Uses the administrator-configured GA4 Reader HTTP operation to read data and output Chinese-language data analysis.

Connection Requirements

Before starting a query, confirm that the current Aily application has the following HTTP operation:

  • Method: POST
  • Endpoint: <GA4_READER_API_URL>/v1/report
  • Secret Header: X-GA4-READER-TOKEN

If the HTTP operation does not exist, stop immediately and instruct the administrator to complete the Reader API configuration. Do not install gcloud, Python packages, or MCP. Do not initiate Google OAuth, device code login, or browser login.

The token can only exist in the Aily private connection configuration. Do not repeat, print, or write the URL, request body, Skill, or final answer.

Query Rules

  1. Use the GA4 Data API runReport JSON for the request body.
  2. The Property is fixed on the server side and is not passed in the request.
  3. For user funnels, prefer totalUsers; for event diagnostics, use eventCount.
  4. Mark current-day data as incomplete and specify the Property's time zone.
  5. CVR = transactions / sessions.
  6. AOV = purchaseRevenue / transactions.
  7. Revenue per Session = purchaseRevenue / sessions.
  8. Users in dimension rows may be duplicated; do not sum row-level Users to represent the total unique users for the entire site.
  9. When the sample size is too small, mark it as "requires observation" and do not draw strong conclusions.

For detailed query fields and examples, see references/query-guide.md.

Output Requirements

  • Use Chinese. Present the conclusion first, then a table, and finally actionable recommendations.
  • Clearly state the date, time zone, currency, dimensions, metrics, and filter conditions.
  • Distinguish between confirmed facts, possible causes, and information requiring confirmation.
  • Prefer Markdown tables or TSV for row-level results.
  • Do not fabricate metrics not returned by the API.

相关技能