ga4

Retrieve GA4 metrics with date ranges, dimensions, and filters.

31|8|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/citedy/adclaw --skill ga4-citedy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ga4
Source: https://github.com/citedy/adclaw/tree/main/src/adclaw/agents/skills/ga4
Command: npx skills add https://github.com/citedy/adclaw --skill ga4-citedy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-auth-oauthlib, google-analytics-data, requests, google-auth, and includes scripts (resource) components.

What problem does it solve?

GA4 data is critical for understanding site performance, user behavior, and marketing impact, but programmatic access can be complex without a ready-made query layer.

Core Features & Use Cases

  • Programmatic GA4 queries: Retrieve metrics such as pagePath, sessions, and traffic sources across custom date ranges.
  • Flexible reporting: Build reports that combine multiple metrics and dimensions for pages, events, and audiences.
  • Use Case: Marketing teams can generate dashboards showing top pages and source breakdowns for the last 30 days.

Quick Start

Ask GA4 to fetch the top pages for the last 30 days.

Frequently Asked Questions about ga4

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

FAQPage Schema
How do I query GA4 data programmatically using an API?

You can query GA4 data by providing your property ID and Google OAuth credentials. This Skill handles date ranges, dimensions, and filters to retrieve read-only metrics like sessions and traffic sources via the Google Analytics Data API.

What do I need to extract metrics from GA4 for marketing and engagement analyses?

Extracting GA4 metrics requires a GA4 property ID and Google OAuth credentials. You can then retrieve dimensions and metrics like pagePath and sessions across custom date ranges for marketing or engagement reporting.

Can I build custom reports combining multiple dimensions and metrics from GA4?

Yes, you can build flexible GA4 reports combining multiple metrics and dimensions for pages, events, and audiences. This allows you to generate dashboards showing top pages and traffic source breakdowns across custom date ranges.

Does querying GA4 reporting data via OAuth require write access to my property?

Querying GA4 reporting data via OAuth does not require write access. The API performs read-only queries, ensuring your property data remains safe while you extract metrics for analysis.

What is the best way to automate GA4 dashboard generation for top pages?

Automating GA4 dashboard generation is best achieved through a programmatic query layer. This Skill extracts metrics like top pages and traffic source breakdowns over custom date ranges, ready for marketing dashboards.