google/skills✦ 精选0°

google-analytics-data-api-basics

仓库创建 2026年4月1日最近提交 2 小时前SkillHot 收录 1 小时前
▸ 精选理由

方便将 GA 数据整合到仪表盘或自动化报表流程,节省分析人力。

▸ 风险提示

需启用 API 并配置凭据,涉及访问用户/产品数据权限和隐私合规。

这个 Skill 做什么

使用 Google Analytics Data API(v1beta)查询和生成定制化分析报告与指标。

帮你开启并用 Google Analytics Data API v1beta 拉取定制化分析报表,能查询像 activeUsers、screenPageViews 之类的指标和 city、date 等维度。需要把 GA 数据接入自动化报表、做定制化查询或验证 API 是否启用时会用到。不要用它来做 Admin 操作(建 property 或管理用户)或前端埋点安装,它专注于报表数据层。

▸ 展开 SKILL.md 英文原文

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 front-end tracking installation.

数据与抓取GA 报告Data API指标查询自动化报表通用
1.6w
Stars
1.3k
Forks
40
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/google/skills/main/skills/analytics/google-analytics-data-api-basics/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/google/skills/main/skills/analytics/google-analytics-data-api-basics/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Getting Started with Google Analytics Data API

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.

## Enabling the API via Cloud CLI

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.

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

    ```bash
    gcloud services enable analyticsdata.googl
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有