← Back to Skills Marketplace
codeninja23

Native Google Analytics

by codeninja23 · GitHub ↗ · v0.1.1
cross-platform ✓ Security Clean
762
Downloads
18
Stars
4
Active Installs
2
Versions
Install in OpenClaw
/install native-google-analytics
Description
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...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install native-google-analytics
  3. After installation, invoke the skill by name or use /native-google-analytics
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug native-google-analytics
Version 0.1.1
License
All-time Installs 4
Active Installs 4
Total Versions 2
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 762 downloads so far.

How do I install Native Google Analytics?

Run "/install native-google-analytics" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Native Google Analytics free?

Yes, Native Google Analytics is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Native Google Analytics support?

Native Google Analytics is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Native Google Analytics?

It is built and maintained by codeninja23 (@codeninja23); the current version is v0.1.1.

💬 Comments