Official agent skill

Google Analytics Admin API Basics

by google in google/skills

Manages Google Analytics account and property settings, enables the Analytics Admin API via the Cloud CLI, lists accounts and properties, and manages data streams, custom dimensions, conversion…

OfficialApache-2.0Auto-check passedMarketing & SEO

Install Google Analytics Admin API Basics

skills CLI
$ npx skills add google/skills --skill google-analytics-admin-api-basics -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install google/skills google-analytics-admin-api-basics --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/google/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/analytics/google-analytics-admin-api-basics .claude/skills/google-analytics-admin-api-basics && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
google-analytics-admin-api-basics
GitHub stars
21k
Token cost
~1.9k tokens
SKILL.md length
804 words
Files
8 (incl. references)
Skills in repo
147
Repo updated
First seen
Licence
Apache-2.0

At a glance

Manages Google Analytics account and property settings, enables the Analytics Admin API via the Cloud CLI, lists accounts and properties, and manages data streams, custom dimensions, conversion…

  • Works in 2 steps: Enable the API: Use the Cloud CLI… → Verify API Enablement
  • You need to programmatically configure Google Analytics accounts
  • SKILL.md covers Enabling the API via Cloud CLI, Authentication, Admin API Use Cases and Calling the Admin API
  • Calls gcloud; reaches googleapis.com

What it does

Google Analytics Admin API Basics is an agent skill from google/skills, published by the product's own GitHub organization. Manages Google Analytics account and property settings, enables the Analytics Admin API via the Cloud CLI, lists accounts and properties, and manages data streams, custom dimensions, conversion events, and integrations. Use when you need to programmatically configure Google Analytics accounts, provision properties, manage data retention, configure Measurement Protocol secrets, or manage Firebase and Google Ads links.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files (for example `references/dotnet.md`, `references/go.md` and `references/java.md`).

It sits in Marketing & SEO, covering Paid advertising. It works with Google Analytics, Firebase, Google Ads and Google Cloud. The repository describes itself as: Agent Skills for Google products and technologies. The licence is Apache-2.0.

When your agent uses it

  • You need to programmatically configure Google Analytics accounts
  • Provision properties
  • Manage data retention
  • Configure Measurement Protocol secrets

Example prompts

  • “Use the google-analytics-admin-api-basics skill to manage Google Analytics account and property settings, enables the Analytics Admin API via the…”
  • “/google-analytics-admin-api-basics”

Requirements

  • Python 3
  • Node.js

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Enable the API: Use the Cloud CLI (gcloud) to enable
  2. Verify API Enablement

What it can do on your machine

Read from SKILL.md and the folder at commit 7d97937. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gcloud

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • googleapis.com

    Also links to:

    • developers.google.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Google Analytics Admin API Basics loads about 1.9k tokens when it runs, and up to ~4.9k if it reads all its reference files. Until then it costs about 114 tokens; SKILL.md has 804 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~114
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from google/skills at commit 7d97937, republished under its Apache-2.0 licence (© google). 804 words, ~1,934 tokens.

Download SKILL.mdSave it as .claude/skills/google-analytics-admin-api-basics/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
google-analytics-admin-api-basics
description
Manages Google Analytics account and property settings, enables the Analytics Admin API via the Cloud CLI, lists accounts and properties, and manages data streams, custom dimensions, conversion events, and integrations. Use when you need to programmatically configure Google Analytics accounts, provision properties, manage data retention, configure Measurement Protocol secrets, or manage Firebase and Google Ads links.
metadata.version
1.0.0
metadata.category
GoogleAnalytics

Getting Started with Google Analytics Admin API

The Google Analytics Admin API provides programmatic access to Google Analytics account and property configuration. It lets you automate account management, manage data streams, configure custom dimensions, and handle product integrations.

Enabling the API via Cloud CLI

Before making API calls, ensure the Google Analytics Admin API is enabled in your Google Cloud project.

If gcloud is not found, prompt the user to install the Google Cloud CLI before running these commands.

  1. Enable the API: Use the Cloud CLI (gcloud) to enable analyticsadmin.googleapis.com.

    bash
    gcloud services enable analyticsadmin.googleapis.com --quiet

    Why: Enabling the API ensures your Cloud project has the necessary quota and permissions allocated for managing Google Analytics configurations.

  2. Verify API Enablement:

    bash
    gcloud services list --enabled --filter="analyticsadmin.googleapis.com"

Authentication

To authenticate your API requests, you must generate Application Default Credentials (ADC) and give your account the necessary scopes. Run the following command in your terminal:

bash
gcloud auth application-default login --scopes="https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/analytics.readonly"

Why: This configures ADC in your local environment with the required Cloud Platform and Google Analytics read-only scopes, allowing the client library to automatically authenticate your requests.

[!NOTE] Configuration Changes: Methods changing the Google Analytics account/property configuration will need the https://www.googleapis.com/auth/analytics.edit scope.

Admin API Use Cases

You can use the Google Analytics Admin API to:

  • Run Data Access reports (see https://developers.google.com/analytics/devguides/config/admin/v1/access-api.md.txt for more info)
  • Create Account summaries
  • Manage accounts
  • Provision new accounts
  • Search account change history events
  • Manage and create properties
  • Manage property data retention settings
  • Manage conversion events
  • Manage custom dimensions and metrics
  • Manage data streams and configure measurement protocol secrets
  • Manage Firebase links
  • Manage Google Ads links
  • Manage key events
v1alpha-Only Use Cases

The following capabilities are currently available only in the v1alpha version of the Admin API:

  • Manage account and property access bindings
  • Create and manage rollup properties
  • Create and manage subproperties
  • Acknowledge user data collection
  • Change property attribution, data retention, Google signals, reporting identity, and User Provided Data settings
  • Manage AdSense links
  • Manage BigQuery links
  • Manage audiences
  • Manage channel groups
  • Manage calculated metrics
  • Manage DisplayVideo360Advertiser links
  • Manage expanded data sets
  • Manage reporting data annotations
  • Manage SearchAds360 links
  • Manage event create rules for a data stream
  • Manage SKAdNetwork conversion value schema of an iOS stream
  • Submit a request for user deletion for a Google Analytics property.

Calling the Admin API

To interact with the Admin API, use the official Google Analytics Admin client library. Note that v1beta is the most stable version of the Admin API. For the latest features, consider using v1alpha.

[!IMPORTANT] Mandatory Agent Directive: When the user selects or requires a specific programming language, read the corresponding client library setup reference guide in references/ listed below.

Supported Client Libraries
Python

If you need to install or set up the Google Analytics Admin API client library for Python, read the setup guide:

Java

If you need to install or set up the Google Analytics Admin API client library for Java, read the setup guide:

Show full SKILL.md (311 more words)Show less
PHP

If you need to install or set up the Google Analytics Admin API client library for PHP, read the setup guide:

Node.js

If you need to install or set up the Google Analytics Admin API client library for Node.js, read the setup guide:

Go

If you need to install or set up the Google Analytics Admin API client library for Go, read the setup guide:

.NET

If you need to install or set up the Google Analytics Admin API client library for .NET / C#, read the setup guide:

Ruby

If you need to install or set up the Google Analytics Admin API client library for Ruby, read the setup guide:

[!NOTE] Additional Resources: For further examples of calling the Admin API with Java, PHP, Node.js, .NET, Python, and REST, as well as hints on authentication with a service account, refer to the official Admin API Quickstart. For complete API reference documentation for both v1alpha and v1beta, see the Admin API Reference.

Python Quick Start
  1. Install the Client Library:

    bash
    pip install google-analytics-admin

    If pip is not available, prompt the user to install pip before installing the client library.

  2. List Accounts and Properties: Below is a complete example demonstrating how to call the Admin API to list all available accounts and their child properties for the current user using list_account_summaries().

    python
    from google.analytics.admin import AnalyticsAdminServiceClient
    
    def sample_list_account_summaries():
        # Initialize the client.
        # Assumes Application Default Credentials (ADC) are configured in your environment.
        client = AnalyticsAdminServiceClient()
    
        # list_account_summaries returns a summary of all accounts accessible to the
        # user and their child properties.
        account_summaries = client.list_account_summaries()
    
        print("Available Google Analytics Accounts and Properties:")
        for summary in account_summaries:
            print(f"Account: {summary.display_name} ({summary.account})")
            for property_summary in summary.property_summaries:
                print(f"  Property: {property_summary.display_name} ({property_summary.property})")
    
    if __name__ == "__main__":
        sample_list_account_summaries()

© google, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (references) in skills/analytics/google-analytics-admin-api-basics of google/skills.

  • SKILL.md
  • references/dotnet.md
  • references/go.md
  • references/java.md
  • references/nodejs.md
  • references/php.md
  • references/python.md
  • references/ruby.md

Open the folder on GitHubat commit 7d97937

Compare with similar skills

Google Analytics Admin API Basics next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Google Analytics Admin API Basics compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Google Analytics Admin API Basics this skillgoogle/skills21k—~1.9kAutomated safety check: PassApache-2.0
GoogleVKirill/claude-lane-stack122—~1.7kAutomated safety check: PassMIT
YandexVKirill/claude-lane-stack122—~1.3kAutomated safety check: PassMIT
Ops Marketingdavepoon/buildwithclaude3.6k—~21kAutomated safety check: NotesMIT
Blog GoogleAgriciDaniel/claude-blog2.3k1 repos~3.3kAutomated safety check: NotesMIT
SEO Googleseranking/seo-skills160—~4.8kAutomated safety check: PassMIT

Similar skills

  • Google

    VKirill/claude-lane-stack

    [RU: экосистема Google] Ads (RSA/PMax), Analytics GA4, Search Console, GTM, Cloud auth.

    122 GitHub stars~1.7k tokensUpdated yesterday
    Marketing & SEOAuto-check passed
  • Yandex

    VKirill/claude-lane-stack

    [RU: экосистема Яндекса] Cloud, Direct API, креативы Direct, Метрика, Вебмастер.

    122 GitHub stars~1.3k tokensUpdated yesterday
    Marketing & SEOAuto-check passed
  • Ops Marketing

    davepoon/buildwithclaude

    Marketing command center. An agent skill from davepoon/buildwithclaude.

    3.6k GitHub stars~21k tokensUpdated 2 days ago
    Marketing & SEOAuto-check: notes
  • Blog Google

    AgriciDaniel/claude-blog

    Google API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity…

    2.3k GitHub starsUsed in 1 repo~3.3k tokens
    Marketing & SEOAuto-check: notes
  • SEO Google

    seranking/seo-skills

    Direct access to Google's own SEO data via Search Console (Search Analytics, URL Inspection, Sitemaps), PageSpeed Insights v5, CrUX field data with 25-week history, Indexing API v3, GA4 organic…

    160 GitHub stars~4.8k tokensUpdated 3 mo ago
    Marketing & SEOAuto-check passed
  • Google Ads

    arnabbagxd/Brand-building-skills

    Plan, build, and optimize Google Ads campaigns — Search, Shopping, Performance Max, Display, and YouTube — including keyword research, match types, bidding strategy, Quality Score, ad extensions…

    720 GitHub stars~3.1k tokensUpdated 3 mo ago
    Marketing & SEOAuto-check passed

More from google/skills

All 147 skills in this repo
  • Official

    Query Cloud Trace spans, filter by latency thresholds or error status, correlate distributed traces with Cloud Logging, and diagnose latency bottlenecks across Google Cloud services.

    21k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Official

    Manages Google Cloud Privileged Access Manager entitlements and grants: create and edit entitlements, request temporary access, and approve or deny pending grants.

    21k GitHub stars~3.2k tokensUpdated today
    Auto-check passed
  • Official

    Writes Terraform alerting policies for AI agents that emit OpenTelemetry metrics, covering reliability, cost, safety, security and quality signals on Google Cloud.

    21k GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • Official

    Deploys open models or custom weights from Model Garden to Agent Platform endpoints, checks deployment status and cleans up endpoints, confirming before any change.

    21k GitHub stars~5k tokensUpdated today
    Auto-check passed
  • Official

    Searches, manages and scaffolds skills in the Gemini Enterprise Agent Platform Skill Registry using bundled Python scripts and Google Cloud credentials.

    21k GitHub stars~584 tokensUpdated today
    Auto-check passed
  • Designs GCP infrastructure as local Terraform, validates and scans it against best practices, then imports it to Application Design Center for deployment and troubleshooting.

    21k GitHub stars~4.4k tokensUpdated today
    Auto-check passed

Categories

Questions about Google Analytics Admin API Basics

What does Google Analytics Admin API Basics do?

Manages Google Analytics account and property settings, enables the Analytics Admin API via the Cloud CLI, lists accounts and properties, and manages data streams, custom dimensions, conversion…. Google Analytics Admin API Basics is an agent skill from google/skills, published by the product's own GitHub organization. Manages Google Analytics account and property settings, enables the Analytics Admin API via the Cloud CLI, lists accounts and properties, and manages data streams, custom dimensions, conversion events, and integrations.

When should I use Google Analytics Admin API Basics?

Google Analytics Admin API Basics fits situations like: you need to programmatically configure Google Analytics accounts; provision properties; manage data retention; configure Measurement Protocol secrets.

How do I install Google Analytics Admin API Basics in Claude Code?

Run `npx skills add google/skills --skill google-analytics-admin-api-basics -a claude-code`. Or copy the skill folder (skills/analytics/google-analytics-admin-api-basics in google/skills) into .claude/skills/google-analytics-admin-api-basics in your project. Claude Code loads it when a task matches its description.

How do I install Google Analytics Admin API Basics in Codex?

Run `npx skills add google/skills --skill google-analytics-admin-api-basics -a codex`. Or copy the skill folder (skills/analytics/google-analytics-admin-api-basics in google/skills) into .agents/skills/google-analytics-admin-api-basics in your project. Codex loads it when a task matches its description.

Can I use Google Analytics Admin API Basics in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add google/skills --skill google-analytics-admin-api-basics -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/google-analytics-admin-api-basics, .gemini/skills/google-analytics-admin-api-basics, .github/skills/google-analytics-admin-api-basics and .opencode/skills/google-analytics-admin-api-basics in your project.

What does Google Analytics Admin API Basics need to run?

Going by SKILL.md and its folder, Google Analytics Admin API Basics needs the command-line tools its instructions call (gcloud). Our summary lists: Python 3; Node.js.

Does Google Analytics Admin API Basics access the network?

SKILL.md names 2 domains. In commands or code: googleapis.com; the agent is likely to contact it when it follows the instructions. As links in the text: developers.google.com. This is read from the text; nothing was executed.

Is Google Analytics Admin API Basics safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Google Analytics Admin API Basics use?

Google Analytics Admin API Basics is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Google Analytics Admin API Basics use?

About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3k tokens, read only when the agent opens those files.

What are the alternatives to Google Analytics Admin API Basics?

Skills that share tags, products or a category with Google Analytics Admin API Basics: Google (VKirill/claude-lane-stack, 122 stars), Yandex (VKirill/claude-lane-stack, 122 stars), Ops Marketing (davepoon/buildwithclaude, 3.6k stars) and Blog Google (AgriciDaniel/claude-blog, 2.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Google Analytics Admin API Basics?

google (a GitHub organization, an official publisher) maintains it in google/skills, which has 21,032 GitHub stars. The repository holds 147 skills in this directory. The repository was last updated on October 8, 2026.

Source: google/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.