
Google Analytics Admin API Basics
Lets your agent set up and manage Google Analytics accounts, properties and data streams via the Admin API
- Repository
- google/skills
- Stars
- 21,782
- Licence
- Apache-2.0
- Files
- 8 files
What it does
This skill teaches an AI agent how to work with the Google Analytics Admin API, the interface used to configure Google Analytics itself rather than read its reports. Once installed, the agent can guide enabling the API in a Google Cloud project with the gcloud command line tool, set up sign-in credentials, list accounts and properties, and point you to the right client library for Python, Java, PHP, Node.js, Go, .NET or Ruby. It also covers managing data streams, custom dimensions, conversion events, data retention and links to Firebase and Google Ads.
Great for
- Developers automating Google Analytics account or property setup
- Data or analytics engineers who manage many properties and need repeatable configuration
- Teams provisioning new Analytics properties or data streams as part of onboarding
Skip it if
- Simply viewing reports or dashboards, which is better handled by the Analytics Data API or the Analytics interface (the skill is about configuration, not reporting)
- Changing live production Analytics settings without review, since the skill can drive configuration changes that affect tracking data and retention
- Users without a Google Cloud project or Analytics admin rights, who cannot complete the setup steps
Try asking
- “Enable the Google Analytics Admin API in my Cloud project and check that it is active”
- “Write a Python script that lists all my Analytics accounts and their properties”
- “Create a new GA4 property with a web data stream and set data retention to 14 months”
- “Show me how to add a custom dimension and create a conversion event with the Node.js client”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 8 original files, the Apache-2.0 licence and an attribution note.
google-analytics-admin-api-basics.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip google-analytics-admin-api-basics.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip google-analytics-admin-api-basics.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Start with read-only scopes (analytics.readonly) for exploration and only request analytics.edit when you really need to change configuration.
- Ask the agent to name the exact gcloud and API calls it will run and review them before approving, since it can execute commands and change account settings.
- Specify the language you want up front so the agent loads the matching setup reference, and note that v1alpha features are less stable than v1beta.
What's inside
- references/dotnet.md
- references/go.md
- references/java.md
- references/nodejs.md
- references/php.md
- references/python.md
- references/ruby.md
- SKILL.md
Redistributed unmodified from google/skills under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.