← 返回 Skills 市场
codeninja23

Native Google Analytics

作者 codeninja23 · GitHub ↗ · v0.1.1
cross-platform ✓ 安全检测通过
762
总下载
18
收藏
4
当前安装
2
版本数
在 OpenClaw 中安装
/install native-google-analytics
功能描述
Query Google Analytics 4 (GA4) data directly via the Analytics Data API. Use when you need website analytics like top pages, traffic sources, sessions, users...
安全使用建议
This skill appears to be a legitimate GA4 client. Before installing, verify you trust the skill source and keep your Google client secret and refresh token private—anyone with them can obtain access tokens for your account. Use a dedicated Google Cloud project and OAuth credentials you control (preferably restricted to analytics.readonly). Because the skill is script-based, you can inspect the two Python files yourself; if you plan to reuse the refresh token across environments, store it securely (e.g., in a secrets manager) rather than embedding it in shared shells. If you need higher assurance, run the scripts locally (not in a multi-tenant environment) and confirm network traffic goes only to oauth2.googleapis.com and analyticsdata.googleapis.com.
功能分析
Type: OpenClaw Skill Name: native-google-analytics Version: 0.1.1 The skill is designed to query Google Analytics 4 (GA4) data using the official Analytics Data API. It requires sensitive Google OAuth credentials (Client ID, Client Secret, Refresh Token) and a GA4 Property ID, which are explicitly requested as environment variables. The setup instructions in SKILL.md and README.md guide the user through obtaining these credentials via standard Google Cloud procedures and a `python3 -c` command using `google-auth-oauthlib`. The core script `scripts/ga4_query.py` uses these credentials to obtain an access token and then makes read-only API calls to `analyticsdata.googleapis.com`. There is no evidence of data exfiltration to unauthorized endpoints, arbitrary command execution, persistence mechanisms, or malicious prompt injection attempts against the agent. The input parsing for API filters constructs structured JSON and does not appear to allow for code injection.
能力评估
Purpose & Capability
Name/description (query GA4) match the actual code and required env vars. The scripts implement OAuth and call analyticsdata.googleapis.com; required binaries (python3) and env vars (property id, client id/secret, refresh token) are appropriate for this purpose.
Instruction Scope
SKILL.md only instructs the user to create OAuth credentials, generate a refresh token via a local browser flow, set environment variables, and run the provided scripts. The runtime instructions and scripts only read those env vars and call Google endpoints; they do not reference unrelated system files, other credentials, or external endpoints beyond Google's OAuth and Analytics API.
Install Mechanism
There is no install spec; the skill is instruction-and-script only and requires python3 on PATH. No remote downloads, package installs, or extraction of archives are performed by the skill itself.
Credentials
Requested env vars (GA4_PROPERTY_ID, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, GOOGLE_REFRESH_TOKEN) are exactly the credentials needed to authenticate to Google and query GA4. The number and type of secrets are proportional to the described functionality. No unrelated secrets or config paths are requested.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system-wide settings, and does not request persistent platform privileges. It runs on invocation only.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install native-google-analytics
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /native-google-analytics 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
- Added new metadata section to SKILL.md for environment variables, binaries, and file requirements. - Declared primary environment variable (GA4_PROPERTY_ID) and listed required scripts for openclaw compatibility. - Added a README.md file. - No changes to core functionality.
v0.1.0
- Initial release of the native Google Analytics skill. - Enables direct querying of Google Analytics 4 (GA4) data via the Analytics Data API. - Supports custom date ranges, multiple metrics and dimensions, and advanced filtering. - No third-party proxy; connects directly to analyticsdata.googleapis.com. - Includes comprehensive setup instructions and example queries for common analytics needs.
元数据
Slug native-google-analytics
版本 0.1.1
许可证
累计安装 4
当前安装数 4
历史版本数 2
常见问题

Native Google Analytics 是什么?

Query Google Analytics 4 (GA4) data directly via the Analytics Data API. Use when you need website analytics like top pages, traffic sources, sessions, users... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 762 次。

如何安装 Native Google Analytics?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install native-google-analytics」即可一键安装,无需额外配置。

Native Google Analytics 是免费的吗?

是的,Native Google Analytics 完全免费(开源免费),可自由下载、安装和使用。

Native Google Analytics 支持哪些平台?

Native Google Analytics 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Native Google Analytics?

由 codeninja23(@codeninja23)开发并维护,当前版本 v0.1.1。

💬 留言讨论