# Google Analytics

> Google Analytics integration for AI agents via ClawLink — browser login, no API key setup. Connect Google Analytics through ClawLink's hosted setup to run GA4 reports, inspect properties, query audience data, and manage analytics resources. Use this skill when the user wants to work with Google Analytics (Google Apps) — connect Google Analytics, read or update Google Analytics data, or take actions in Google Analytics from chat instead of saying you cannot access it.

- Skill: `clawlink-hq/google-analytics` (Agent Skill)
- Install (CLI): `npx skillmds@latest add clawlink-hq/google-analytics`
- Raw SKILL.md: https://api.skillmd.com/api/skills/clawlink-hq/google-analytics/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: clawlink-hq (https://skillmd.com/u/clawlink-hq)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/clawlink-hq/google-analytics

---


# Google Analytics

Use **Google Analytics** from your AI agent through [ClawLink](https://claw-link.dev) — browser login, no API key to paste, no config to edit. Connect Google Analytics once and the agent can read and act on it. Works in any agent that can run shell commands (Claude Code, Cursor, Codex, Cline, and more).

## Setup

Run these once — the agent can run them for you:

```bash
npx @useclawlink/cli login              # opens browser → approve (mints + stores a key)
npx @useclawlink/cli connect google-analytics   # opens browser → authorize Google Analytics
```

No API key to create or paste — `login` stores the credential at `~/.clawlink/credentials.json`.

## Using Google Analytics

```bash
npx @useclawlink/cli actions google-analytics "<what you want to do>"   # find an action
npx @useclawlink/cli describe google-analytics <action-id>             # see its inputs (before writes)
npx @useclawlink/cli run google-analytics <action-id> --input '<json>' # execute
```

Reads first; confirm with the user before any write.

## Available actions

| Action | Description |
|--------|-------------|
| `google_analytics_run_report` | Run a GA4 report with dimensions and metrics |
| `google_analytics_run_realtime_report` | Run a real-time GA4 report |
| `google_analytics_run_funnel_report` | Run a funnel exploration report |
| `google_analytics_batch_run_reports` | Run multiple GA4 reports in a batch |
| `google_analytics_run_pivot_report` | Run a pivot report in GA4 |
| `google_analytics_list_account_summaries` | List GA account summaries |
| `google_analytics_get_property` | Get a GA4 property |
| `google_analytics_list_properties_filtered` | List GA4 properties |
| `google_analytics_get_metadata` | Get GA4 metadata (dimensions and metrics) |
| `google_analytics_list_key_events` | List key events in a GA4 property |
| `google_analytics_list_data_streams` | List data streams for a GA4 property |
| `google_analytics_check_compatibility` | Check dimension and metric compatibility |
| `google_analytics_list_audiences` | List audiences in a GA4 property |
| `google_analytics_create_key_event` | Create a key event in GA4 |
| `google_analytics_update_property` | Update a GA4 property |

## Notes

- **No API key for Google Analytics itself** — ClawLink holds the OAuth token; the agent only holds your ClawLink credential.
- Not connected yet, or access expired? Re-run `npx @useclawlink/cli connect google-analytics`.
- The action list above is a snapshot; `npx @useclawlink/cli actions google-analytics` is always current.

## Resources

- ClawLink: https://claw-link.dev
- Docs: https://docs.claw-link.dev
- CLI: https://www.npmjs.com/package/@useclawlink/cli

---

**Powered by [ClawLink](https://claw-link.dev)** — connect 90+ apps to any AI agent.

