google-analytics-automation by aaaaqwq/agi-super-skills
npx skills add https://github.com/aaaaqwq/agi-super-skills --skill google-analytics-automation通过 Composio 的 Google Analytics 工具包,经由 Rube MCP 自动化 Google Analytics 4 (GA4) 报告和资源管理。
RUBE_SEARCH_TOOLS 可用)RUBE_MANAGE_CONNECTIONS 使用 google_analytics 工具包建立有效的 Google Analytics 连接RUBE_SEARCH_TOOLS 以获取当前工具模式获取 Rube MCP:在您的客户端配置中将 https://rube.app/mcp 添加为 MCP 服务器。无需 API 密钥——只需添加端点即可工作。
RUBE_SEARCH_TOOLS 有响应来验证 Rube MCP 是否可用google_analytics 调用 广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
RUBE_MANAGE_CONNECTIONS使用时机:用户希望发现可用的 GA4 账户和资源
工具调用顺序:
GOOGLE_ANALYTICS_LIST_ACCOUNTS - 列出所有可访问的 GA4 账户 [必需]GOOGLE_ANALYTICS_LIST_PROPERTIES - 列出账户下的资源 [必需]关键参数:
pageSize:每页结果数量pageToken:来自先前响应的分页令牌filter:资源的过滤表达式(例如,parent:accounts/12345)注意事项:
使用时机:用户希望从 GA4 数据中查询指标和维度
工具调用顺序:
GOOGLE_ANALYTICS_LIST_PROPERTIES - 获取资源 ID [前提条件]GOOGLE_ANALYTICS_GET_METADATA - 发现可用的维度和指标 [可选]GOOGLE_ANALYTICS_CHECK_COMPATIBILITY - 验证维度/指标兼容性 [可选]GOOGLE_ANALYTICS_RUN_REPORT - 执行报告查询 [必需]关键参数:
property:资源 ID(例如,'properties/123456')dateRanges:包含 startDate 和 endDate 的日期范围对象数组dimensions:包含 name 字段的维度对象数组metrics:包含 name 字段的指标对象数组dimensionFilter / metricFilter:过滤表达式orderBys:排序配置limit:返回的最大行数offset:用于分页的行偏移量注意事项:
CHECK_COMPATIBILITYGET_METADATA 来发现有效的维度和指标名称offset 用于结果分页,而非日期分页使用时机:用户需要在一个调用中从同一资源获取多个不同的报告
工具调用顺序:
GOOGLE_ANALYTICS_LIST_PROPERTIES - 获取资源 ID [前提条件]GOOGLE_ANALYTICS_BATCH_RUN_REPORTS - 一次性执行多个报告 [必需]关键参数:
property:资源 ID(必需)requests:单个报告请求对象数组(结构与 RUN_REPORT 相同)注意事项:
RUN_REPORT 相同的维度/指标限制使用时机:用户希望获得交叉表数据(行与列),类似于数据透视表
工具调用顺序:
GOOGLE_ANALYTICS_LIST_PROPERTIES - 获取资源 ID [前提条件]GOOGLE_ANALYTICS_RUN_PIVOT_REPORT - 执行数据透视报告 [必需]关键参数:
property:资源 ID(必需)dateRanges:日期范围对象dimensions:在任何数据透视中使用的所有维度metrics:要聚合的指标pivots:包含 fieldNames、limit 和 orderBys 的数据透视定义数组注意事项:
dimensions 中fieldNames 引用顶层列表中的维度名称limit 和 orderBys使用时机:用户希望分析转化漏斗和流失率
工具调用顺序:
GOOGLE_ANALYTICS_LIST_PROPERTIES - 获取资源 ID [前提条件]GOOGLE_ANALYTICS_RUN_FUNNEL_REPORT - 执行漏斗分析 [必需]关键参数:
property:资源 ID(必需)dateRanges:日期范围对象funnel:包含 steps 数组的漏斗定义funnelBreakdown:用于细分漏斗的可选维度注意事项:
使用时机:用户希望查看或管理 GA4 中的转化事件(关键事件)
工具调用顺序:
GOOGLE_ANALYTICS_LIST_PROPERTIES - 获取资源 ID [前提条件]GOOGLE_ANALYTICS_LIST_KEY_EVENTS - 列出该资源的所有关键事件 [必需]关键参数:
parent:资源名称(例如,'properties/123456')pageSize:每页结果数量pageToken:分页令牌注意事项:
账户名称 -> 账户 ID:
1. 调用 GOOGLE_ANALYTICS_LIST_ACCOUNTS
2. 通过 displayName 查找账户
3. 提取 name 字段(例如,'accounts/12345')
资源名称 -> 资源 ID:
1. 使用 filter 调用 GOOGLE_ANALYTICS_LIST_PROPERTIES
2. 通过 displayName 查找资源
3. 提取 name 字段(例如,'properties/123456')
1. 使用资源 ID 调用 GOOGLE_ANALYTICS_GET_METADATA
2. 浏览可用的维度和指标
3. 调用 GOOGLE_ANALYTICS_CHECK_COMPATIBILITY 以验证组合
4. 在 RUN_REPORT 中使用已验证的维度/指标
offset 和 limit 进行行分页pageTokenpageToken 不存在或达到 rowCount维度:date、city、country、deviceCategory、sessionSource、sessionMedium、pagePath、pageTitle、eventName
指标:activeUsers、sessions、screenPageViews、eventCount、conversions、totalRevenue、bounceRate、averageSessionDuration
资源 ID:
LIST_PROPERTIES 将资源名称解析为 ID日期范围:
兼容性:
CHECK_COMPATIBILITY 进行验证响应解析:
rows 数组中,包含 dimensionValues 和 metricValuesrows 键(而不是空数组)| 任务 | 工具标识 | 关键参数 |
|---|---|---|
| 列出账户 | GOOGLE_ANALYTICS_LIST_ACCOUNTS | pageSize, pageToken |
| 列出资源 | GOOGLE_ANALYTICS_LIST_PROPERTIES | filter, pageSize |
| 获取元数据 | GOOGLE_ANALYTICS_GET_METADATA | property |
| 检查兼容性 | GOOGLE_ANALYTICS_CHECK_COMPATIBILITY | property, dimensions, metrics |
| 运行报告 | GOOGLE_ANALYTICS_RUN_REPORT | property, dateRanges, dimensions, metrics |
| 批量报告 | GOOGLE_ANALYTICS_BATCH_RUN_REPORTS | property, requests |
| 数据透视报告 | GOOGLE_ANALYTICS_RUN_PIVOT_REPORT | property, dateRanges, pivots |
| 漏斗报告 | GOOGLE_ANALYTICS_RUN_FUNNEL_REPORT | property, dateRanges, funnel |
| 列出关键事件 | GOOGLE_ANALYTICS_LIST_KEY_EVENTS | parent, pageSize |
每周安装量
1
代码仓库
GitHub 星标数
11
首次出现
4 天前
安全审计
安装于
amp1
cline1
openclaw1
opencode1
cursor1
kimi-cli1
Automate Google Analytics 4 (GA4) reporting and property management through Composio's Google Analytics toolkit via Rube MCP.
RUBE_MANAGE_CONNECTIONS with toolkit google_analyticsRUBE_SEARCH_TOOLS first to get current tool schemasGet Rube MCP : Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
RUBE_SEARCH_TOOLS respondsRUBE_MANAGE_CONNECTIONS with toolkit google_analyticsWhen to use : User wants to discover available GA4 accounts and properties
Tool sequence :
GOOGLE_ANALYTICS_LIST_ACCOUNTS - List all accessible GA4 accounts [Required]GOOGLE_ANALYTICS_LIST_PROPERTIES - List properties under an account [Required]Key parameters :
pageSize: Number of results per pagepageToken: Pagination token from previous responsefilter: Filter expression for properties (e.g., parent:accounts/12345)Pitfalls :
When to use : User wants to query metrics and dimensions from GA4 data
Tool sequence :
GOOGLE_ANALYTICS_LIST_PROPERTIES - Get property ID [Prerequisite]GOOGLE_ANALYTICS_GET_METADATA - Discover available dimensions and metrics [Optional]GOOGLE_ANALYTICS_CHECK_COMPATIBILITY - Verify dimension/metric compatibility [Optional]GOOGLE_ANALYTICS_RUN_REPORT - Execute the report query [Required]Key parameters :
property: Property ID (e.g., 'properties/123456')dateRanges: Array of date range objects with startDate and endDatedimensions: Array of dimension objects with name fieldmetrics: Array of metric objects with name fielddimensionFilter / metricFilter: Filter expressionsorderBys: Sort order configurationPitfalls :
offset is for result pagination, not date paginationWhen to use : User needs multiple different reports from the same property in one call
Tool sequence :
GOOGLE_ANALYTICS_LIST_PROPERTIES - Get property ID [Prerequisite]GOOGLE_ANALYTICS_BATCH_RUN_REPORTS - Execute multiple reports at once [Required]Key parameters :
property: Property ID (required)requests: Array of individual report request objects (same structure as RUN_REPORT)Pitfalls :
When to use : User wants cross-tabulated data (rows vs columns) like pivot tables
Tool sequence :
GOOGLE_ANALYTICS_LIST_PROPERTIES - Get property ID [Prerequisite]GOOGLE_ANALYTICS_RUN_PIVOT_REPORT - Execute pivot report [Required]Key parameters :
property: Property ID (required)dateRanges: Date range objectsdimensions: All dimensions used in any pivotmetrics: Metrics to aggregatepivots: Array of pivot definitions with fieldNames, limit, and orderBysPitfalls :
dimensionsfieldNames reference dimension names from the top-level listlimit and orderBysWhen to use : User wants to analyze conversion funnels and drop-off rates
Tool sequence :
GOOGLE_ANALYTICS_LIST_PROPERTIES - Get property ID [Prerequisite]GOOGLE_ANALYTICS_RUN_FUNNEL_REPORT - Execute funnel analysis [Required]Key parameters :
property: Property ID (required)dateRanges: Date range objectsfunnel: Funnel definition with steps arrayfunnelBreakdown: Optional dimension to break down funnel byPitfalls :
When to use : User wants to view or manage conversion events (key events) in GA4
Tool sequence :
GOOGLE_ANALYTICS_LIST_PROPERTIES - Get property ID [Prerequisite]GOOGLE_ANALYTICS_LIST_KEY_EVENTS - List all key events for the property [Required]Key parameters :
parent: Property resource name (e.g., 'properties/123456')pageSize: Number of results per pagepageToken: Pagination tokenPitfalls :
Account name - > Account ID:
1. Call GOOGLE_ANALYTICS_LIST_ACCOUNTS
2. Find account by displayName
3. Extract name field (e.g., 'accounts/12345')
Property name - > Property ID:
1. Call GOOGLE_ANALYTICS_LIST_PROPERTIES with filter
2. Find property by displayName
3. Extract name field (e.g., 'properties/123456')
1. Call GOOGLE_ANALYTICS_GET_METADATA with property ID
2. Browse available dimensions and metrics
3. Call GOOGLE_ANALYTICS_CHECK_COMPATIBILITY to verify combinations
4. Use verified dimensions/metrics in RUN_REPORT
offset and limit for row paginationpageToken from responsepageToken is absent or rowCount reachedDimensions : date, city, country, deviceCategory, sessionSource, sessionMedium, pagePath, pageTitle, eventName
Metrics : activeUsers, sessions, screenPageViews, eventCount, conversions, totalRevenue, bounceRate, averageSessionDuration
Property IDs :
Date Ranges :
Compatibility :
Response Parsing :
rows array with dimensionValues and metricValuesrows key (not an empty array)| Task | Tool Slug | Key Params |
|---|---|---|
| List accounts | GOOGLE_ANALYTICS_LIST_ACCOUNTS | pageSize, pageToken |
| List properties | GOOGLE_ANALYTICS_LIST_PROPERTIES | filter, pageSize |
| Get metadata | GOOGLE_ANALYTICS_GET_METADATA | property |
| Check compatibility | GOOGLE_ANALYTICS_CHECK_COMPATIBILITY | property, dimensions, metrics |
| Run report | GOOGLE_ANALYTICS_RUN_REPORT | property, dateRanges, dimensions, metrics |
| Batch reports | GOOGLE_ANALYTICS_BATCH_RUN_REPORTS | property, requests |
| Pivot report | GOOGLE_ANALYTICS_RUN_PIVOT_REPORT | property, dateRanges, pivots |
| Funnel report | GOOGLE_ANALYTICS_RUN_FUNNEL_REPORT | property, dateRanges, funnel |
| List key events | GOOGLE_ANALYTICS_LIST_KEY_EVENTS |
Weekly Installs
1
Repository
GitHub Stars
11
First Seen
4 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
amp1
cline1
openclaw1
opencode1
cursor1
kimi-cli1
Python PDF处理教程:合并拆分、提取文本表格、创建PDF文件
58,600 周安装
limit: Maximum rows to returnoffset: Row offset for pagination| parent, pageSize |