본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트22k · #10196

google-analytics-admin-api-basics

하는 일

Analytics Admin API를 활성화하고, 계정과 속성을 나열하며, 코드에서 데이터 스트림과 맞춤 측정기준 같은 설정을 바꿉니다. 많은 Analytics 속성을 관리하는 개발자와 분석가를 위한 스킬입니다.

사용하는 경우

  • ✓코드로 많은 Google Analytics 속성을 설정하거나 나열해야 할 때.
  • ✓맞춤 측정기준이나 전환 이벤트를 자동으로 추가하고 싶을 때.
  • ✓데이터 스트림의 Measurement Protocol 비밀 키를 설정해야 할 때.

스킬 링크

https://github.com/google/skills/blob/main/skills/analytics/google-analytics-admin-api-basics/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/google/skills/blob/main/skills/analytics/google-analytics-admin-api-basics/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 Google Analytics 속성을 모두 나열하고, 그중 하나에 맞춤 측정기준을 추가해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 Google Cloud CLI로 API를 활성화하고, 올바른 범위로 자격 증명을 설정한 뒤, 계정과 속성을 나열하고 설정하기 위해 관리 호출을 합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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

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:

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, re

자주 묻는 질문

API를 먼저 활성화해야 하나요?

네. 스킬에는 Google Cloud 프로젝트에서 API를 활성화하고 확인하는 명령이 포함되어 있습니다.

어떤 로그인이 필요한가요?

Analytics 읽기 전용 범위와 cloud platform 범위를 가진 Application Default Credentials가 필요합니다.

Firebase도 관리할 수 있나요?

네. 설명에 따르면 Firebase 같은 제품 연동도 다룰 수 있습니다.

상세 정보

작성자의 원본 설명

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.

repo: google/skills

인기도

GitHub 스타
22k
순위
#10196
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬