Google Analytics
Use Google Analytics from your AI agent through ClawLink — 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:
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
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-analyticsis 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 — connect 90+ apps to any AI agent.