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
- Use the GA4 Data API
runReportJSON for the request body. - The Property is fixed on the server side and is not passed in the request.
- For user funnels, prefer
totalUsers; for event diagnostics, useeventCount. - Mark current-day data as incomplete and specify the Property's time zone.
- CVR =
transactions / sessions. - AOV =
purchaseRevenue / transactions. - Revenue per Session =
purchaseRevenue / sessions. - Users in dimension rows may be duplicated; do not sum row-level Users to represent the total unique users for the entire site.
- 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.