CommunityResearch & Data Analysisgithub.com

GA4 Reader Skill for Feishu Aily

Enables Feishu Aily and WorkBuddy to securely read GA4 data via natural language using a dual-platform Skill and Reader API.

What is GA4 Reader Skill for Feishu Aily?

The GA4 Reader for Feishu Aily skill allows developers and AI agents to query Google Analytics 4 data using natural language through a pre-configured HTTP Reader API. It is designed for the Feishu Aily platform and WorkBuddy, ensuring secure access without requiring local installations or OAuth flows. The skill translates user questions into GA4 Data API `runReport` JSON requests, applies server-side fixed properties, and enforces specific analytical rules such as using `totalUsers` for funnels, `eventCount` for event diagnostics, and calculating metrics like CVR, AOV, and Revenue per Session. It outputs Chinese-language analysis with clear conclusions, tables, and actionable recommendations, while handling data sampling and day-partialness appropriately.

Works with~Claude Code~Codex CLI~Cursor
npx skills add The-AlexLiu/GA4-Reader-Skill

Installed? Explore more Research & Data Analysis skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

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.

Related Skills