跳到正文
Skillpedia
自动化48k · #4769

google-analytics-automation

它能做什么

这个工具可以帮你获取 Google Analytics 的数据,而无需处理复杂的设置。你可以请它生成报告、查看你的账户和媒体资源(property),或者分析转化漏斗。

适用场景

  • ✓当你想查看自己有哪些 Google Analytics 账户时。
  • ✓当你需要某份关于网站流量的具体报告时。
  • ✓当你想了解用户在网站上如何浏览时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/google-analytics-automation/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/google-analytics-automation/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“给我看一下过去 30 天的网站流量报告。”

每周 5 个新技能,1 分钟读完。

工作原理

它会通过一个名为 Rube MCP 的工具连接到 Google Analytics。首先检查连接是否有效,然后使用特定命令获取你所需的数据,比如报告或账户列表。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Google Analytics Automation via Rube MCP

Automate Google Analytics 4 (GA4) reporting and property management through Composio's Google Analytics toolkit via Rube MCP.

Prerequisites

  • Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
  • Active Google Analytics connection via RUBE_MANAGE_CONNECTIONS with toolkit google_analytics
  • Always call RUBE_SEARCH_TOOLS first to get current tool schemas

Setup

Get 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.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit google_analytics
  3. If connection is not ACTIVE, follow the returned auth link to complete Google OAuth
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. List Accounts and Properties

When to use: User wants to discover available GA4 accounts and properties

Tool sequence:

  1. GOOGLE_ANALYTICS_LIST_ACCOUNTS - List all accessible GA4 accounts [Required]
  2. GOOGLE_ANALYTICS_LIST_PROPERTIES - List properties under an account [Required]

Key parameters:

  • pageSize: Number of results per page
  • pageToken: Pagination token from previous response
  • filter: Filter expression for properties (e.g., parent:accounts/12345)

Pitfalls:

  • Property IDs are numeric strings prefixed with 'properties/' (e.g., 'properties/123456')
  • Account IDs are prefixed with 'accounts/' (e.g., 'accounts/12345')
  • Always list accounts first, then properties under each account
  • Pagination required for organizations with many properties

2. Run Standard Reports

When to use: User wants to query metrics and dimensions from GA4 data

Tool sequence:

  1. GOOGLE_ANALYTICS_LIST_PROPERTIES - Get property ID [Prerequisite]
  2. GOOGLE_ANALYTICS_GET_METADATA - Discover available dimensions and metrics [Optional]
  3. GOOGLE_ANALYTICS_CHECK_COMPATIBILITY - Verify dimension/metric compatibility [Optional]
  4. 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 endDate
  • dimensions: Array of dimension objects with name field
  • metrics: Array of metric objects with name field
  • dimensionFilter / metricFilter: Filter expressions
  • orderBys: Sort order configuration
  • limit: Maximum rows to return
  • offset: Row offset for pagination

Pitfalls:

  • Date format is 'YYYY-MM-DD' or relative values like 'today', 'yesterday', '7daysAgo', '30daysAgo'
  • Not all dimensions and metrics are compatible; use CHECK_COMPATIBILITY first
  • Use GET_METADATA to discover valid dimension and metric names
  • Maximum 9 dimensions per report request
  • Row limit defaults vary; set explicitly for large datasets
  • offset is for result pagination, not date pagination

3. Run Batch Reports

When to use: User needs multiple different reports from the same property in one call

Tool sequence:

  1. GOOGLE_ANALYTICS_LIST_PROPERTIES - Get property ID [Prerequisite]
  2. 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:

  • Maximum 5 report requests per batch call
  • All reports in a batch must target the same property
  • Each individual report has the same dimension/metric limits as RUN_REPORT
  • Batch errors may affect all reports; check individual report responses

4. Run Pivot Reports

When to use: User wants cross-tabulated data (rows vs columns) like pivot tables

Tool sequence:

  1. GOOGLE_ANALYTICS_LIST_PROPERTIES - Get property ID [Prerequisite]
  2. GOOGLE_ANALYTICS_RUN_PIVOT_REPORT - Execute pivot report [Required]

Key parameters:

  • property: Property ID (required)
  • dateRanges: Date range objects
  • dimensions: All dimensions used in any pivot
  • metrics: Metrics to aggregate
  • pivots: Array of pivot definitions with fieldNames, limit, and orderBys

Pitfalls:

  • Dimensions used in pivots must also be listed in top-level dimensions
  • Pivot fieldNames reference dimension names from the top-level list
  • Complex pivots with many dimensions can produce very large result sets

…

常见问题

我需要有 Google Analytics 账户吗?

需要。你必须拥有一个有效的 Google Analytics 账户,并将这个工具与之连接,才能正常使用。

什么是 Rube MCP?

Rube MCP 是一个帮助连接不同工具的系统。可以把它想象成一个翻译,让这个工具能够与 Google Analytics 进行沟通。

我可以请求任何类型的报告吗?

你可以请求标准报告、漏斗分析、交叉表数据(透视报告),以及查看关键事件。如果你能说出想要的指标和维度的准确名称,会更有帮助。

详情

作者的原始描述

Automate Google Analytics tasks via Rube MCP (Composio): run reports, list accounts/properties, funnels, pivots, key events. Always search tools first for current schemas.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4769
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能