google-analytics

Fetch GA4 analytics data to analyze website performance.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/gnestor/claude-workflow-plugin --skill google-analytics-gnestor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-analytics
Source: https://github.com/gnestor/claude-workflow-plugin/tree/main/.claude/skills/google/analytics
Command: npx skills add https://github.com/gnestor/claude-workflow-plugin --skill google-analytics-gnestor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @std/dotenv/load, and includes scripts (resource) components.

What problem does it solve?

GA4 analytics access and reporting setup to answer website performance questions and provide actionable insights without manual data gathering.

Core Features & Use Cases

  • Authenticate and connect to GA4 via OAuth or service accounts
  • List accounts/properties, get property details, run standard and real-time reports
  • Convenience commands: top-pages, traffic-sources, device-breakdown, active-users
  • Cross-source analysis and benchmarking across properties or data sources (e.g., GA4 vs. other sources)

Quick Start

Authenticate with Google Analytics, then run a sample report for your GA4 property.

Frequently Asked Questions about google-analytics

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

FAQPage Schema
How do I fetch GA4 analytics data to analyze website performance?

To fetch GA4 analytics data, you need to authenticate via OAuth or a service account, configure credentials in a .env file, and use commands to run standard or real-time reports for your property.

How do I get real-time reporting and traffic sources from GA4?

You can get real-time reporting and identify traffic sources from GA4 by using built-in convenience commands that query active users, top pages, and traffic source breakdowns for your properties.

Do I need a service account or OAuth to connect to GA4 APIs?

You need either OAuth or a service account to authenticate with GA4 APIs. You must enable the APIs and configure your chosen credentials in an environment file to access your analytics data.

Can I analyze top pages and device breakdowns across multiple GA4 properties?

Yes, you can analyze top pages and device breakdowns across multiple GA4 properties. The skill supports account discovery and allows cross-source analysis to benchmark performance across different properties.

What are the limitations of using a service account for GA4 reporting?

A limitation of using a service account for GA4 reporting is the strict prerequisite setup. You must manually enable GA APIs and properly configure environment variables, or data fetching will fail.

What environment setup is required to run GA4 web traffic reports?

Running GA4 web traffic reports requires setting up a .env file with your authentication credentials. The environment must support loading these variables to successfully connect and execute analytics queries.