google-analytics-admin-api-basics

google-analytics-admin-api-basics is a skill for Claude Code, Codex from hamzabellouch/agent-skills. It costs 78 tokens per session (1,653 once invoked), scanned A, a copy of google-analytics-admin-api-basics, MIT.

A guide for managing Google Analytics account and property settings through Google's administration API. Google Analytics measures activity on websites and apps, while the administration API changes how that measurement is configured.

In plain words
What is it for?
Enabling the API, signing in with application credentials, listing accounts and properties, managing data streams, creating custom dimensions and conversion events, and configuring integrations.
Why use it?
It replaces repetitive manual setup with documented commands and checks for API access, authentication, and permissions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/hamzabellouch/agent-skills/google-analytics-admin-api-basics
Any agent
npx skills add hamzabellouch/agent-skills --skill google-analytics-admin-api-basics
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for google-analytics-admin-api-basics

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/google-analytics-admin-api-basics.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/google-analytics-admin-api-basics)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/google-analytics-admin-api-basics"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/google-analytics-admin-api-basics.svg" alt="Measured on agentmods" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,653 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.01653
Opus 5 $0.00039 $0.00826
Sonnet 5 $0.00016 $0.00331
Haiku 4.5 $0.00008 $0.00165

Measured 6d ago against content hash e2fed3747a40, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

google-analytics-admin-api-basics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to google-analytics-admin-api-basics — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AI API and Agent Platform/google-analytics-admin-api-basics/SKILL.md · 214 lines

How it starts

The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

    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:

    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:

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

Read the full file on GitHub · 214 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 214 lines · 78 tokens per session scan A e2fed3747a40

Subscribe to this mod's changes

google-analytics-admin-api-basics is a skill published in the GitHub repository hamzabellouch/agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 78 tokens to every session and 1,653 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to google-analytics-admin-api-basics, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

spec-implement

Orchestrate parallel implementation of a feature specification by dispatching coder agents batch-by-batch with code review gates between batches. Use this skill when the user says "implement this feature", "start implementing", "run the spec", "execute the plan", "continue implementing", or wants to begin coding a…

benjaminthomas/spec-driven-dev · 130 tokens

spec-create

Create a structured feature specification with self-contained task files organized into parallel execution batches. Use this skill when the user says "create a spec", "plan this feature", "write up an implementation plan", "break this into tasks", or after any planning conversation where the user wants to capture…

benjaminthomas/spec-driven-dev · 118 tokens

spec-ship

Push the current branch to GitHub and create a pull request. Use this skill when the user says "ship it", "ship this", "push to github", "create a pr", "open a pull request", "send for review", "get this reviewed", or wants to push their work and open a PR. Also use when the user says "/spec-ship" (or their host's…

benjaminthomas/spec-driven-dev · 119 tokens

spec-checkpoint

Create a comprehensive checkpoint commit with detailed analysis of all changes. Use this skill when the user says "checkpoint", "commit everything", "save my progress", "create a commit", or wants to stage and commit all current changes with a well-crafted message. Also use when the user says "/spec-checkpoint" (or…

benjaminthomas/spec-driven-dev · 98 tokens

generative-seo

Run an evidence-based SEO + GEO (Generative Engine Optimization) program for ANY website or product codebase — auditing technical SEO, writing or retrofitting content so it gets cited by ChatGPT/Perplexity/AI Overviews, tracking AI-citation visibility, refreshing competitor research, and drafting distribution posts.…

benjaminthomas/spec-driven-dev · 180 tokens

spec-verify

Verify a completed feature spec by driving the real running app — not just lint/typecheck/build — and checking off every acceptance criterion from its specs/{feature}/ folder one by one. Use this after /spec-implement finishes a spec, when the user says "test this end to end", "verify this feature actually works"…

benjaminthomas/spec-driven-dev · 210 tokens