Agent skill · Data & Analytics

google-analytics

Agent-callable Google Analytics 4 (GA4) tools — run analytics reports, discover the dimensions and metrics a property supports, navigate accounts and properties, manage key events and custom dimensions/metrics, and send Measurement Protocol events. Use when the user mentions Google Analytics or GA4, or wants website/app traffic, conversion, or reporting data — including requests that don't name GA4 explicitly, e.g. how many users visited last week, top pages by country.

zapiergithub.com/zapierGitHub ↗
claude-codecodexcopilotcursorships scriptsNOASSERTION
Install
npx skills add zapier/connectors --skill google-analytics --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 63
SKILL.md size: 17 KB
Bundled scripts: yes
Requires: Run `npm install --omit=dev` in this directory, then `node cli.js`. The TypeScript source needs Node.js 22.18+; on…
Path: apps/google-analytics/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 113
Language: TypeScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Google Analytics _Independent, unofficial connector for Google Analytics. Not affiliated with, endorsed by, or sponsored by Google Analytics. "Google Analytics" is a trademark of its owner, used only to identify the service this connector works with._ Google Analytics 4 (GA4) exposes two OAuth-authenticated APIs — the Data API for reporting and the Admin API for configuration — plus the Measurement Protocol for sending events. This connector wraps all three: run and explore analytics reports, discover the dimensions and metrics a property supports, walk the account → property tree, manage key events (conversions) and custom dimensions/metrics, and send server-side events. It is reporting-first — `runReport` is the core tool, with `getMetadata` and `checkCompatibility` underneath so you can compose a valid report without guessing field names. Every property-scoped tool takes `propertyId` — the numeric GA4 property id (e.g. `123456`), **not** the `G-XXXXXXX` measurement id. Resolve it once with `listAccountSummaries`. ## When to use this - **Reporting** — run historical (`runReport`) or realtime (`runRealtimeReport`) reports, discover valid dimension/metric names (`getMetadata`), a

What's inside
Steps it walks through
  1. When to use this
  2. Setup
  3. Scripts
  4. Disambiguation & refusals
  5. Auth
  6. Running scripts
  7. Output format
  8. References
Ships with 24 files
  • .claude-plugin/plugin.json
  • .mcp.json
  • CHANGELOG.md
  • LICENSE
  • NOTICE
  • README.md
  • cli.js
  • cli.ts
  • connections.ts
  • evals/evals.json
  • evals/results.md
  • index.ts
  • lib/googleAnalytics.ts
  • package.json
  • references/google-analytics-api-gotchas.md
  • references/use-as-cli.md
  • references/use-as-mcp.md
  • references/use-as-recipe.md
  • references/use-as-sdk.md
  • references/use-with-zapier.md
  • references/use-without-zapier.md
  • scripts/archiveCustomDimension.ts
  • scripts/archiveCustomMetric.ts
  • scripts/checkCompatibility.ts
first 24 of 63
Commands it runs
default — via the entry point; self-checks readiness and prints friendly diagnostics
node cli.js run <script> '<input-json>' --connection [<resolver>:]<value>
shorthand — runs the script file directly (same args, same Node 22.18+ need, no readiness check)
More from connectors
All skills →
About this skill
What does the google-analytics skill do?

Agent-callable Google Analytics 4 (GA4) tools — run analytics reports, discover the dimensions and metrics a property supports, navigate accounts and properties, manage key events and custom dimensions/metrics, and send Measurement Protocol events. Use when the user mentions Google Analytics or GA4, or wants website/app traffic, conversion, or reporting data — including requests that don't name GA4 explicitly, e.g. how many users visited last week, top pages by country.

How do I install it?

Run `npx skills add zapier/connectors --skill google-analytics --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From zapier/connectors, a repository with 113 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going