google-analytics

Analyze GA4 data via the Google Analytics Data API to surface KPIs and recommendations.

231|24|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/LichAmnesia/lich-skills --skill google-analytics-lichamnesia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-analytics
Source: https://github.com/LichAmnesia/lich-skills/tree/main/skills/google-analytics
Command: npx skills add https://github.com/LichAmnesia/lich-skills --skill google-analytics-lichamnesia

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @google-analytics/data, and includes scripts (resource) components.

What problem does it solve?

Analyze GA4 data to understand website performance, identify traffic patterns, and surface optimization opportunities.

Core Features & Use Cases

  • Analyze GA4 data via the Google Analytics Data API to surface KPIs, landing pages, traffic sources, device performance, and trends.
  • Generate structured daily reports or ad-hoc analyses with prioritized recommendations to drive data-driven decisions.
  • Use cases include evaluating organic performance, comparing time periods, diagnosing high-bounce pages, and guiding optimization efforts.

Quick Start

Run bun run daily-report.ts --property 123456789 to generate a complete GA4 daily report for a single property.

Frequently Asked Questions about google-analytics

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

FAQPage Schema
How do I analyze GA4 data to identify website traffic patterns and optimization opportunities?

You can analyze GA4 data by querying the Google Analytics Data API to aggregate KPIs, surface traffic patterns, and generate prioritized recommendations for optimization opportunities. This reveals website performance metrics and guides data-driven decisions.

What is the best way to generate structured daily reports from Google Analytics 4?

Generating structured daily reports is done by running a script against a specific GA4 property ID to query the Data API. This aggregates KPIs, traffic sources, and device performance into a complete daily report with actionable insights.

Can I diagnose high-bounce landing pages and compare period-over-period performance using GA4 data?

Yes, you can diagnose high-bounce landing pages and compare period-over-period performance using GA4 data. The tool evaluates organic performance and traffic sources to surface specific page issues and trend changes.

Do I need the Google Analytics Data API to extract web performance metrics for ad-hoc analysis?

Yes, you need the Google Analytics Data API dependency to extract web performance metrics for ad-hoc analysis. Querying this API allows you to retrieve KPIs, evaluate device comparisons, and guide optimization efforts.

How does querying the GA4 Data API help surface actionable growth insights?

Querying the GA4 Data API aggregates website performance metrics and transforms them into prioritized recommendations. This surfaces actionable growth insights by highlighting optimization opportunities within landing pages and traffic sources.