Agent skill · data analytics · sundial-org

ga4-analytics

Google Analytics 4, Search Console, and Indexing API toolkit. Analyze website traffic, page performance, user demographics, real-time visitors, search queries, and SEO metrics. Use when the user asks to: check site traffic, analyze page views, see traffic sources, view user demographics, get real-time visitor data, check search console queries, analyze SEO performance, request URL re-indexing, inspect index status, compare date ranges, check bounce rates, view conversion data, or get e-commerce revenue. Requires a Google Cloud service account with GA4 and Search Console access.

Why this skill is useful

Adds specific API commands and workflows for Google Analytics 4 and Search Console that the AI wouldn't reliably generate on its own.

What it needs

Requires npm installed locally. Requires google-cloud account access. About 3k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.

What this skill does

GA4 Analytics Toolkit Setup Install dependencies: Configure credentials by creating a .env file in the project root: Prerequisites: A Google Cloud project with the Analytics Data API, Search Console API, and Indexing API enabled. A service account with access to your GA4 property and Search Console. Quick Start User says Function to call ----------- ----------------- "Show me site traffic for the last 30 days" siteOverview("30d") "What are my top search queries?" searchConsoleOverview("30d") "Who's on the site right now?" liveSnapshot() "Reindex these URLs" reindexUrls(["https://example.com/page1", ...]) "Compare this month vs last month" compareDateRanges({startDate: "30daysAgo", endDate: "today"}, {startDate: "60daysAgo", endDate: "31daysAgo"}) "What pages get the most traffic?" contentPerformance("30d") Execute functions by importing from scripts/src/index.ts: Or run directly with tsx: Workflow Pattern Every analysis follows three phases: 1. Analyze Run API functions. Each call hits the Google APIs and returns structured data. 2. Auto-Save All results automatically save as timestamped JSON files to results/{category}/. File naming pattern: YYYYMMDDHHMMSSoperationextrainfo.json 3. Summarize After analysis, read the saved JSON files and create a markdown summary in results/summaries/ with data tables, trends, and recommendations. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sundial-org/ga4-analytics

View the source on GitHub

Browse the @skills marketplace