google-analytics-data-api-basics

Enable the Analytics Data API and run custom reports via Cloud CLI.

17.1k|1.4k|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/google/skills --skill google-analytics-data-api-basics-google
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-analytics-data-api-basics
Source: https://github.com/google/skills/tree/main/skills/analytics/google-analytics-data-api-basics
Command: npx skills add https://github.com/google/skills --skill google-analytics-data-api-basics-google

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-cloud-cli, client-libraries, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you manage Google Analytics reporting data, enabling the Analytics Data API via the Cloud CLI, and creating reports using the Google Analytics Data API (v1beta). It simplifies interaction with Google Analytics properties, runs customized analytics reports, queries metrics and dimensions, checks compatibility, and verifies API enablement.

Core Features & Use Cases

  • Analytics Data API Access: Enables programmatic access to Google Analytics report data.
  • Custom Reports: Build customized dashboards and automate reporting workflows.
  • Metrics & Dimensions Querying: Interact with Google Analytics properties, run reports, and query metrics and dimensions.
  • API Enablement Verification: Checks if the Analytics Data API is enabled in your Google Cloud project.
  • Client Libraries: Provides setup guides for various programming languages to interact with the API.

Quick Start

Use the gcloud command to enable the Analytics Data API and then run a report using the client library of your choice.

Frequently Asked Questions about google-analytics-data-api-basics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Google Analytics reporting data queries using the Data API?

You can automate Google Analytics reporting data queries by enabling the Analytics Data API via the Cloud CLI and using client libraries to run customized reports, query metrics, and check dimension compatibility programmatically.

What do I need to set up before accessing Google Analytics data programmatically?

Before accessing Google Analytics data programmatically, you need the google-cloud-cli to enable the Analytics Data API in your Google Cloud project and the appropriate client libraries for your chosen programming language.

How can I check if the Google Analytics Data API is enabled in my Cloud project?

You can check if the Google Analytics Data API is enabled in your Cloud project using the google-cloud-cli. The Skill verifies API enablement to ensure your environment is ready for programmatic reporting.

Can I query custom metrics and dimensions for Google Analytics properties?

Yes, you can query custom metrics and dimensions for Google Analytics properties. The Skill allows you to interact with properties, run reports, and check compatibility between metrics and dimensions using the Data API.

Does this approach support building custom dashboards from Google Analytics data?

Building custom dashboards from Google Analytics data is supported by querying metrics and dimensions through the Data API. You can pull customized reporting data into your applications to automate workflows and populate visualizations.