google-analytics

Query GA4 data for traffic, engagement, and realtime monitoring reports.

2|1|Updated Jul 19, 2024
One-click install
npx skills add https://github.com/TeamDay-AI/agents --skill google-analytics-teamday-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-analytics
Source: https://github.com/TeamDay-AI/agents/tree/main/skills/teamday/google-analytics
Command: npx skills add https://github.com/TeamDay-AI/agents --skill google-analytics-teamday-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-auth-library, and includes scripts (resource) components.

What problem does it solve?

Analyzing GA4 data across traffic, engagement, and real-time activity often requires manual queries and multiple tools; this Skill provides a unified gateway to fetch, aggregate, and visualize GA4 metrics via a single script.

Core Features & Use Cases

  • Automated summary metrics (active users, sessions, page views) for quick health checks.
  • Top pages, traffic sources, and country breakdowns to inform content and campaigns.
  • Real-time active user monitoring for live campaign observation and troubleshooting.

Quick Start

Run the GA4 reporting script to generate a 28-day summary of traffic and engagement.

Frequently Asked Questions about google-analytics

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

FAQPage Schema
How do I query GA4 data for traffic and engagement metrics?

Query GA4 data for traffic and engagement by running a reporting script that fetches active users, sessions, and page views. The script authenticates via Google Cloud Application Default Credentials and uses the GA4_PROPERTY_ID to generate a 28-day summary.

Can I monitor real-time active users in GA4?

Yes, you can monitor real-time active users in GA4 by running the realtime command. This fetches live active user counts, enabling live campaign observation and immediate troubleshooting of traffic anomalies.

What do I need to fetch page performance and traffic sources from GA4?

To fetch page performance and traffic sources from GA4, you need the google-auth-library installed and Google Cloud Application Default Credentials configured. The script uses your GA4_PROPERTY_ID to aggregate top pages and traffic source breakdowns.

Does this approach support international traffic analysis in GA4?

Yes, this approach supports international traffic analysis in GA4. The script includes a countries command that aggregates geographic breakdowns, allowing you to evaluate international traffic insights and inform regional campaigns.

What is the best way to automate SEO analysis with GA4 data?

Automate SEO analysis with GA4 data by applying the script's pages and sources commands. It aggregates top page performance and traffic source metrics into a unified report, replacing manual queries and multiple tools for content evaluation.

Why use a single script for GA4 reporting instead of manual queries?

Use a single script for GA4 reporting to unify traffic, engagement, and realtime monitoring into one gateway. It automates summary metrics and source breakdowns, eliminating the friction of manual queries and multiple analysis tools.