Google Analytics
refly-ai/refly-skills
Integrate with Google Analytics for web metrics. An agent skill from refly-ai/refly-skills.
Manages Google Analytics reporting data, enables the Analytics Data API via the Cloud CLI, and creates reports using the Google Analytics Data API (v1beta).
$ npx skills add google/skills --skill google-analytics-data-api-basics -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install google/skills google-analytics-data-api-basics --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/google/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/analytics/google-analytics-data-api-basics .claude/skills/google-analytics-data-api-basics && rm -rf skills-srcUse ~/.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/
Install the "google-analytics-data-api-basics" agent skill from https://github.com/google/skills/tree/main/skills/analytics/google-analytics-data-api-basics into .claude/skills/google-analytics-data-api-basics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "google-analytics-data-api-basics", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/google/skills/tree/main/skills/analytics/google-analytics-data-api-basicsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add google/skills --skill google-analytics-data-api-basics -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install google/skills google-analytics-data-api-basics --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/google/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/analytics/google-analytics-data-api-basics .agents/skills/google-analytics-data-api-basics && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "google-analytics-data-api-basics" agent skill from https://github.com/google/skills/tree/main/skills/analytics/google-analytics-data-api-basics into .agents/skills/google-analytics-data-api-basics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "google-analytics-data-api-basics", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add google/skills --skill google-analytics-data-api-basics -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install google/skills google-analytics-data-api-basics --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/google/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/analytics/google-analytics-data-api-basics .cursor/skills/google-analytics-data-api-basics && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "google-analytics-data-api-basics" agent skill from https://github.com/google/skills/tree/main/skills/analytics/google-analytics-data-api-basics into .cursor/skills/google-analytics-data-api-basics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "google-analytics-data-api-basics", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/google/skills.git --path skills/analytics/google-analytics-data-api-basics--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add google/skills --skill google-analytics-data-api-basics -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install google/skills google-analytics-data-api-basics --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/google/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/analytics/google-analytics-data-api-basics .gemini/skills/google-analytics-data-api-basics && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "google-analytics-data-api-basics" agent skill from https://github.com/google/skills/tree/main/skills/analytics/google-analytics-data-api-basics into .gemini/skills/google-analytics-data-api-basics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "google-analytics-data-api-basics", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install google/skills google-analytics-data-api-basicsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add google/skills --skill google-analytics-data-api-basics -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/google/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/analytics/google-analytics-data-api-basics .github/skills/google-analytics-data-api-basics && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "google-analytics-data-api-basics" agent skill from https://github.com/google/skills/tree/main/skills/analytics/google-analytics-data-api-basics into .github/skills/google-analytics-data-api-basics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "google-analytics-data-api-basics", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add google/skills --skill google-analytics-data-api-basics -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install google/skills google-analytics-data-api-basics --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/google/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/analytics/google-analytics-data-api-basics .opencode/skills/google-analytics-data-api-basics && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "google-analytics-data-api-basics" agent skill from https://github.com/google/skills/tree/main/skills/analytics/google-analytics-data-api-basics into .opencode/skills/google-analytics-data-api-basics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "google-analytics-data-api-basics", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
google-analytics-data-api-basicsManages Google Analytics reporting data, enables the Analytics Data API via the Cloud CLI, and creates reports using the Google Analytics Data API (v1beta).
Google Analytics Data API Basics is an agent skill from google/skills, published by the product's own GitHub organization. Manages Google Analytics reporting data, enables the Analytics Data API via the Cloud CLI, and creates reports using the Google Analytics Data API (v1beta). Use when you need to interact with Google Analytics properties, run customized analytics reports, query metrics (like activeUsers, screenPageViews) and dimensions (like city, date), check metrics and dimensions compatibility, or verify API enablement. Don't use for Google Analytics Admin API operations (e.g., creating properties, managing users) or for…
Its SKILL.md is about 2.4k 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 Frontend & Design, covering Data analysis. It works with Google Analytics, Python, Java and Google Cloud. The repository describes itself as: Agent Skills for Google products and technologies. The licence is Apache-2.0.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 8a1ac05. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
gcloudFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
googleapis.comAlso links to:
developers.google.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Google Analytics Data API Basics loads about 2.4k tokens when it runs, and up to ~5.8k if it reads all its reference files. Until then it costs about 144 tokens; SKILL.md has 819 words of instructions outside code blocks.
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.
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.
The full file from google/skills at commit 8a1ac05, republished under its Apache-2.0 licence (© google). 819 words, ~2,404 tokens.
.claude/skills/google-analytics-data-api-basics/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.The Google Analytics Data API v1beta provides programmatic access to Google Analytics report data. It allows you to build customized dashboards, automate reporting workflows, and integrate Google Analytics data into your enterprise applications.
Before making API calls, ensure the Google Analytics Data 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.
Enable the API: Use the Cloud CLI (gcloud) to enable
analyticsdata.googleapis.com.
gcloud services enable analyticsdata.googleapis.com --quietWhy: Enabling the API ensures your Cloud project has the necessary quota and permissions allocated for running Google Analytics reports.
Verify API Enablement:
gcloud services list --enabled --filter="analyticsdata.googleapis.com"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.
To create a report, use the official Google Analytics Data client library.
Always prefer the v1beta version of the API for stability and access to
current Google Analytics reporting capabilities.
[!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.
If you need to install or set up the Google Analytics Data API client library for Python, read the setup guide:
google-analytics-data)If you need to install or set up the Google Analytics Data API client library for Java, read the setup guide:
com.google.cloud:google-cloud-analytics-data)If you need to install or set up the Google Analytics Data API client library for PHP, read the setup guide:
google/analytics-data)If you need to install or set up the Google Analytics Data API client library for Node.js, read the setup guide:
@google-analytics/data)If you need to install or set up the Google Analytics Data API client library for Go, read the setup guide:
cloud.google.com/go/analytics/data/apiv1beta)If you need to install or set up the Google Analytics Data API client library for .NET / C#, read the setup guide:
Google.Analytics.Data.V1Beta)If you need to install or set up the Google Analytics Data API client library for Ruby, read the setup guide:
google-analytics-data-v1beta)[!NOTE] Additional Resources: For further examples of calling the Data API with Java, PHP, Node.js, .NET, Python and REST, as well as hints on authentication with a service account, refer to the official Data API Quickstart.
Install the Client Library:
pip install google-analytics-dataIf pip is not available, prompt the user to install pip before
installing the client library.
Run a Report Request: Below is a complete example demonstrating how to
query a Google Analytics property for active users and sessions grouped by city and date.
Replace YOUR-PROPERTY-ID with your actual Google Analytics property ID (e.g.,
1234567).
from google.analytics.data_v1beta import BetaAnalyticsDataClient
from google.analytics.data_v1beta.types import DateRange, Dimension, Metric, RunReportRequest
def sample_run_report(property_id: str):
# Initialize the client.
# Assumes Application Default Credentials (ADC) are configured in your environment.
client = BetaAnalyticsDataClient()
request = RunReportRequest(
property=f"properties/{property_id}",
dimensions=[
Dimension(name="city"),
Dimension(name="date")
],
metrics=[
Metric(name="activeUsers"),
Metric(name="sessions")
],
date_ranges=[
DateRange(start_date="2026-05-01", end_date="today")
],
)
response = client.run_report(request)
print(f"Report result for property {property_id}:")
for row in response.rows:
print(
f"City: {row.dimension_values[0].value}, "
f"Date: {row.dimension_values[1].value}, "
f"Active Users: {row.metric_values[0].value}, "
f"Sessions: {row.metric_values[1].value}"
)
if __name__ == "__main__":
sample_run_report("YOUR-PROPERTY-ID")Why: Using BetaAnalyticsDataClient and RunReportRequest ensures
compatibility with the v1beta endpoint and strongly typed request
validation.
When constructing your RunReportRequest, you must use valid API names for
dimensions and metrics. Refer to the official
Data API Schema documentation
for the complete, authoritative list of available fields.
Dimensions represent categorical attributes of your data.
city: The town or city of the user.country: The country of the user.date: The date of the event, formatted as YYYYMMDD.deviceCategory: The category of mobile device (e.g., desktop, mobile,
tablet).eventName: The name of the triggered event.pageTitle: The title of the web page.Metrics represent quantitative measurements.
activeUsers: The number of active users.eventCount: The total count of events.sessions: The total number of sessions.screenPageViews: The number of app screens or web pages viewed.totalRevenue: The total revenue from purchases, subscriptions, and
advertising.Some dimensions and metrics cannot be queried together in the same report
request. If you encounter an INVALID_ARGUMENT error regarding incompatible
fields, verify your field combinations For programmatic access to the Data API
schema, use getMetadata(). To programmatically check the compatibility of
specific dimension and metric combinations before running a report, use the
checkCompatibility() method.
from google.analytics.data_v1beta import BetaAnalyticsDataClient
from google.analytics.data_v1beta.types import CheckCompatibilityRequest, Compatibility, Dimension, Metric
def sample_check_compatibility(property_id: str):
client = BetaAnalyticsDataClient()
# Define the dimensions and metrics you want to query together.
# For example, checking if 'itemName' (an e-commerce dimension)
# is compatible with 'activeUsers' and 'totalRevenue'.
request = CheckCompatibilityRequest(
property=f"properties/{property_id}",
dimensions=[
Dimension(name="itemName"),
Dimension(name="date")
],
metrics=[
Metric(name="activeUsers"),
Metric(name="totalRevenue")
],
)
response = client.check_compatibility(request)
print(f"Compatibility check for property {property_id}:")
for dim in response.dimension_compatibilities:
is_compatible = dim.compatibility == Compatibility.COMPATIBLE
print(f"Dimension '{dim.dimension_metadata.api_name}' is compatible: {is_compatible}")
for metric in response.metric_compatibilities:
is_compatible = metric.compatibility == Compatibility.COMPATIBLE
print(f"Metric '{metric.metric_metadata.api_name}' is compatible: {is_compatible}")
if __name__ == "__main__":
sample_check_compatibility("YOUR-PROPERTY-ID")© 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
SKILL.md and 7 other files (references) in skills/analytics/google-analytics-data-api-basics of google/skills.
Open the folder on GitHubat commit 8a1ac05
Google Analytics Data 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Google Analytics Data API Basics this skillgoogle/skills | 21k | — | ~2.4k | Automated safety check: Pass | Apache-2.0 | |
| Google Analyticsrefly-ai/refly-skills | 204 | — | ~504 | Automated safety check: Pass | None | |
| Bio Causal Genomics Genetic CorrelationGPTomics/bioSkills | 1.2k | 2 repos | ~9.1k | Automated safety check: Pass | MIT | |
| Vertex AI API DevJetBrains/skills | 363 | 1 repos | ~2.4k | Automated safety check: Pass | None | |
| Google Search ConsoleVKirill/claude-lane-stack | 122 | — | ~4.9k | Automated safety check: Pass | MIT | |
| Io ConnectorsKilo-Org/kilo-marketplace | 189 | — | ~1.3k | Automated safety check: Pass | Apache-2.0 |
refly-ai/refly-skills
Integrate with Google Analytics for web metrics. An agent skill from refly-ai/refly-skills.
GPTomics/bioSkills
Estimates bivariate genetic correlation (rg) between traits from GWAS summary statistics or individual-level genotypes using cross-trait LDSC, HDL, LAVA, rho-HESS, GREML-bivariate, Popcorn, and HDL-L.
JetBrains/skills
Guides the usage of Gemini API on Google Cloud Vertex AI with the Gen AI SDK.
VKirill/claude-lane-stack
[RU: Google Search Console API, гугл серч консоль, вебмастер гугл, gsc] GSC (Webmasters) API v1 — OAuth 2.0 + service account, searchanalytics.query (dimensions, filter operators, 25k row cap +…
Kilo-Org/kilo-marketplace
Guides development and usage of I/O connectors in Apache Beam.
bytedance/deer-flow
Analyzes uploaded Excel and CSV files with SQL through DuckDB, producing schema inspections, statistical summaries and exports to CSV, JSON or Markdown.
google/skills
Manages Google Cloud Privileged Access Manager entitlements and grants: create and edit entitlements, request temporary access, and approve or deny pending grants.
google/skills
Writes Terraform alerting policies for AI agents that emit OpenTelemetry metrics, covering reliability, cost, safety, security and quality signals on Google Cloud.
google/skills
Deploys open models or custom weights from Model Garden to Agent Platform endpoints, checks deployment status and cleans up endpoints, confirming before any change.
google/skills
Searches, manages and scaffolds skills in the Gemini Enterprise Agent Platform Skill Registry using bundled Python scripts and Google Cloud credentials.
google/skills
Designs GCP infrastructure as local Terraform, validates and scans it against best practices, then imports it to Application Design Center for deployment and troubleshooting.
google/skills
Analyzes BigQuery slot use, query costs and execution bottlenecks from INFORMATION_SCHEMA to diagnose slow queries, slot contention and unpartitioned scans.
Works with
Categories
Manages Google Analytics reporting data, enables the Analytics Data API via the Cloud CLI, and creates reports using the Google Analytics Data API (v1beta). Google Analytics Data API Basics is an agent skill from google/skills, published by the product's own GitHub organization. Manages Google Analytics reporting data, enables the Analytics Data API via the Cloud CLI, and creates reports using the Google Analytics Data API (v1beta).
Google Analytics Data API Basics fits situations like: you need to interact with Google Analytics properties; run customized analytics reports; query metrics (like activeUsers; screenPageViews) and dimensions (like city.
Run `npx skills add google/skills --skill google-analytics-data-api-basics -a claude-code`. Or copy the skill folder (skills/analytics/google-analytics-data-api-basics in google/skills) into .claude/skills/google-analytics-data-api-basics in your project. Claude Code loads it when a task matches its description.
Run `npx skills add google/skills --skill google-analytics-data-api-basics -a codex`. Or copy the skill folder (skills/analytics/google-analytics-data-api-basics in google/skills) into .agents/skills/google-analytics-data-api-basics in your project. Codex loads it when a task matches its description.
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-data-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-data-api-basics, .gemini/skills/google-analytics-data-api-basics, .github/skills/google-analytics-data-api-basics and .opencode/skills/google-analytics-data-api-basics in your project.
Going by SKILL.md and its folder, Google Analytics Data API Basics needs the command-line tools its instructions call (gcloud). Our summary lists: Python 3; Node.js.
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.
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.
Google Analytics Data 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.
About 2.4k tokens (SKILL.md is roughly 9.6k 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 3.4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Google Analytics Data API Basics: Google Analytics (refly-ai/refly-skills, 204 stars), Bio Causal Genomics Genetic Correlation (GPTomics/bioSkills, 1.2k stars), Vertex AI API Dev (JetBrains/skills, 363 stars) and Google Search Console (VKirill/claude-lane-stack, 122 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
google (a GitHub organization, an official publisher) maintains it in google/skills, which has 20,994 GitHub stars. The repository holds 145 skills in this directory. The repository was last updated on October 6, 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.