Skip to main content

setup

This skill should be used when the user asks to "set up Google telemetry", "authenticate Google Analytics CLI", "connect Search Console CLI", "fix Google telemetry credentials", or a Google Analytics or Search Console reporting command fails because authentication or property access is missing.

v1.0.0New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install claude-codex-settings-google-telemetry-setup
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/claude-codex-settings-google-telemetry-setup/SKILL.md

Setup guide →
0Save

Instructions

Set up Google telemetry

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.

Check tools

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.

Existing access first

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.

Diagnose failures

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.
  • Insufficient scopes: request only the missing read scope after consent.
  • API disabled or quota project errors: enable the API named in the error in the Cloud project that owns the credential.
  • GA 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.
  • An empty discovery list or report: authentication worked. Check sharing, dates, filters, property and processing delay instead of logging in again.

A gcloud auth login session, a browser session, an API key, a GTM container ID or a Measurement Protocol secret cannot read reports.

Service account setup

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.

  1. In the Google Cloud project that will own the identity, enable the APIs the request needs: Google Analytics Admin API and Google Analytics Data API for Analytics, Google Search Console API for Search Console.
  2. Create a service account such as google-telemetry-reader with no project roles. Reporting access comes from GA and Search Console, not Cloud IAM.
  3. Create a JSON key. If the organization policy iam.disableServiceAccountKeyCreation blocks it, use the user OAuth setup below instead of weakening the policy.
  4. Move the key to a private path such as ~/.config/<org>/google-telemetry-sa.json with mode 600, and point the CLIs at it with GOOGLE_APPLICATION_CREDENTIALS.
  5. In GA Admin, open Account access management for each account, add the service account email as Marketer with No Cost Metrics and No Revenue Metrics left unchecked so CLI and API calls can read cost/revenue metrics and manage audiences, key events, attribution models, lookback windows, and events (choose Editor if custom dimensions or data streams must also be edited via API, or Viewer with both restrictions ticked for strict read-only accounts), and untick Notify. An account-level grant covers its current and future properties. Granting requires the Administrator role. Google-managed accounts such as Chrome Web Store developer properties cannot be shared this way, so use user OAuth for them.
  6. In Search Console, open Settings, then Users and permissions, for each property and add the service account email as Restricted. Restricted is enough for Search Analytics, sitemaps and URL inspection.

User OAuth setup

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.

Verify the requested 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.

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
vercel-react-best-practicesReact and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.1 installssupabase-cliThis skill should be used when user asks to "use supabase CLI", "supabase init", "supabase start", "run migrations", "deploy edge functions", "manage Supabase project", or works with the supabase command-line tool for local development and project management.1 installsschemaUse when adding, fixing, or reviewing structured data: JSON-LD for articles, products, FAQs, breadcrumbs, organizations, and local businesses, and what to do when markup doesn't earn a rich result.1 installsopenobserve-apiThis skill should be used when user asks to "query OpenObserve", "create OpenObserve dashboard", "edit OpenObserve panel", "fetch OpenObserve logs", "run OpenObserve search", "list OpenObserve streams", "ingest into OpenObserve", or works with OpenObserve Cloud / self-hosted via REST API. Covers auth, search/SQL, streams, dashboards (CRUD + per-panel ops), the v8 panel JSON schema, and known pitfalls (re-aggregation, hash concurrency, microsecond timestamps).1 installsanthropic-frontend-designThis skill should be used when the user asks for "art direction", "a distinctive visual identity", or "a visual redesign". Develop typography and composition for a new direction. Use product-ui-design for everyday product screens and controls.1 installsxlsxUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.1 installs

More from claude-codex-settings

View source →
dokploy-deployThis skill should be used when user asks to "deploy with Dokploy", "use Dokploy Cloud", "manage self-hosted Dokploy", "deploy Docker Compose on Dokploy", "manage Dokploy databases", "configure Dokploy domains", or "look up Dokploy CLI commands".3 installsopenai-frontend-designThis skill should be used when the user asks for "visual concepts", "image-led website design", or "concept fidelity". Create visual concepts and implement accepted art direction. Use product-ui-design for everyday product screens and controls.2 installsweb-design-guidelinesReview UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".1 installsk2Build and troubleshoot Cloudflare K2 or K2 Streams durable logs. Use for stream setup, producing from Workers or HTTP, configuring retention and inputs, and consuming through subscriptions.1 installspptxUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.1 installsreview-prThis skill should be used when user asks to "review a PR", "review pull request", "review this pr", "code review this PR", "check PR1 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.631 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.532 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.342 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.244 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.172 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions144 installs

Frequently asked questions about setup

What does the setup skill do?

This skill should be used when the user asks to "set up Google telemetry", "authenticate Google Analytics CLI", "connect Search Console CLI", "fix Google telemetry credentials", or a Google Analytics or Search Console reporting command fails because authentication or property access is missing. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the setup skill?

Run `npx @skills-hub-ai/cli install claude-codex-settings-google-telemetry-setup` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/claude-codex-settings-google-telemetry-setup/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does setup work with?

setup runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the setup skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use setup after installing it?

In Claude Code, type `/claude-codex-settings-google-telemetry-setup` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the setup skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.