/google-telemetry:setupfrom google-telemetry
Walks through setting up Google Analytics and Search Console CLI authentication, diagnosing credential failures, and resolving access issues.
Ships in google-telemetry. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Make the requested Analytics or Search Console read command work. Inspect installed tools and existing access before involving the user. Setup for one service does not require access to the other.
These are third-party CLI wrappers around Google's official client libraries, not Google-supported products. Versions checked on 2026-11-08. Install only the CLI the requested service needs, and only when --version fails.
google-analytics-cli --version
google-search-console-cli --version
npm install --global [email protected]
npm install --global [email protected]
Sources: Analytics CLI, Search Console CLI. Recheck releases and help before upgrading.
Run the requested service's discovery call before creating anything:
google-analytics-cli accounts
google-search-console-cli sites
accounts lists every GA account and property the identity can read. sites lists Search Console properties with the identity's permission level.
Errors print as JSON on stderr with exit code 1. Report a redacted message.
Could not load the default credentials: no credential source is set. Both CLIs read --credentials <path>, then GA's --profile or GA_CLI_PROFILE, then GOOGLE_APPLICATION_CREDENTIALS, then ~/.config/<cli-name>/credentials.json, then Application Default Credentials (ADC). Look for an existing key or ADC login along that chain. Check file presence, permissions and the JSON type field (service_account or authorized_user) without displaying secret fields. A desktop OAuth client JSON (installed) is login configuration, not a credential. A stale higher-priority file can hide a working login.invalid_grant: the OAuth login expired or was revoked. Renew that identity after approval.7 PERMISSION_DENIED or Search Console 403 User does not have sufficient permission for site: the identity works but the property is not shared with it, or the ID is wrong.A gcloud auth login session, a browser session, an API key, a GTM container ID or a Measurement Protocol secret cannot read reports.
Prefer a dedicated service account whose JSON key does not expire and sees only what is shared with it. Creating the account, its key and each property grant requires the user's approval.
google-telemetry-reader with no project roles. Reporting access comes from GA and Search Console, not Cloud IAM.iam.disableServiceAccountKeyCreation blocks it, use the user OAuth setup below instead of weakening the policy.~/.config/<org>/google-telemetry-sa.json with mode 600, and point the CLIs at it with GOOGLE_APPLICATION_CREDENTIALS.Use this when a service account is not allowed or cannot be granted access. Reuse an approved desktop OAuth client. Request analytics.readonly for Analytics and webmasters.readonly for Search Console, both only when both services are needed. gcloud ADC login additionally requires cloud-platform, so explain that extra scope before consent. Do not overwrite an existing shared ADC login without checking its user and scopes.
gcloud auth application-default login \
--client-id-file=/private/path/desktop-client.json \
--scopes=https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/webmasters.readonly,https://www.googleapis.com/auth/cloud-platform
Without an approved desktop client, the user selects a Cloud project, enables the APIs, configures Google Auth Platform's audience and test users, and creates a Desktop app OAuth client. Ask for the local file path, never its contents. Sign-in and consent stay with the user. External OAuth apps in Testing can expire refresh tokens after seven days, so do not promise unattended long-term access.
Rerun discovery without logging in again and confirm every intended property is listed. Then run one small report per service on a listed property using the reporting recipes, with the discovered numeric GA property ID or exact Search Console site URL. Test aggregate usage, key events, revenue/cost metrics (when enabled), or search metrics only, never personal user records.
Report which service and property passed, or the exact remaining access gap. Do not call setup complete after only a login or an empty discovery result. Never print credential JSON, tokens or private keys, commit key files, or extract browser cookies as API credentials.
Google references: ADC, service account keys, Analytics access, Search Console permissions.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fcakyon/claude-codex-settings --plugin google-telemetry2 skills in this plugin
Other plugins' skills for the same job