google-analytics

Analyze Google Analytics 4 metrics and generate website performance recommendations.

2|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/Shubh2310-developer/ENGUNITYCORE --skill google-analytics-shubh2310-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-analytics
Source: https://github.com/Shubh2310-developer/ENGUNITYCORE/tree/main/.claude/skills/google-analytics
Command: npx skills add https://github.com/Shubh2310-developer/ENGUNITYCORE --skill google-analytics-shubh2310-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-analytics-data, python-dotenv, pandas, and includes scripts (resource) components.

What problem does it solve? Manually querying Google Analytics 4 and interpreting raw metrics is time-consuming and error-prone. This Skill connects to the GA4 Data API, fetches traffic and engagement data, and turns it into prioritized, actionable improvement recommendations. ## Core Features & Use Cases - Traffic & Source Analysis: Fetch sessions, users, bounce rate, and engagement metrics segmented by source, medium, campaign, device, or geography. - Automated Diagnostics: Compare periods, detect high-bounce pages, identify mobile vs desktop conversion gaps, and generate prioritized recommendations. - Use Case: Ask "Which pages have the highest bounce rates and how do I fix them?" and receive a ranked list of problem pages with diagnoses (content mismatch, missing CTA) and expected-impact recommendations. ## Quick Start Set the GOOGLE_ANALYTICS_PROPERTY_ID and GOOGLE_APPLICATION_CREDENTIALS environment variables, then ask me to review your Google Analytics performance for the last 30 days.

Frequently Asked Questions about google-analytics

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

FAQPage Schema
How do I analyze Google Analytics 4 data with Python?

Use the google-analytics-data package to query the GA4 Data API with a service account. The included ga_client.py script runs reports with metrics, dimensions, filters, and date ranges, returning structured JSON results.

How do I set up Google Analytics API authentication?

Create a service account in Google Cloud Console, enable the Analytics Data API, download the JSON key, and grant the service account Viewer access in GA4. Set GOOGLE_ANALYTICS_PROPERTY_ID and GOOGLE_APPLICATION_CREDENTIALS environment variables.

What metrics can I query from Google Analytics 4?

You can query sessions, activeUsers, newUsers, bounceRate, engagementRate, screenPageViews, conversions, totalRevenue, and e-commerce metrics like transactions and purchaseRevenue, segmented by dimensions such as source, device, country, and pagePath.

Why does the Google Analytics API return no data?

No data usually means the property ID is wrong, the service account lacks Viewer access to the GA4 property, or the date range contains no data. Note that GA4 data can take 24-48 hours to process, so use yesterday instead of today.

Can I compare current performance with a previous period?

Yes, the analyze.py script supports period comparison by fetching the current period and the equivalent previous period, then calculating absolute and percentage changes per metric with generated insights.