
Google analytics
Lets your agent pull GA4 reports and turn them into prioritized SEO and traffic fixes
Google analytics is an open-source agent skill for marketing and seo. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- TypeScript
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 233
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Google analytics
This skill lets an AI coding agent query Google Analytics 4 through the Data API and interpret the results. It covers organic search performance, traffic sources, high-bounce pages, device gaps and period-over-period comparisons, and ends with recommendations ranked by priority and expected impact.
The main entry point is a daily report script that filters everything to the Organic Search channel, compares rolling 28-day windows, flags day-over-day drops against the same weekday of the prior week, and lists top landing pages, search engines, countries and devices. A lower-level client runs arbitrary metric and dimension combinations, and an analysis script produces pre-built overviews with recommendations. The skill also documents running the daily report on a schedule with cron or a scheduled Claude Code agent.
The scripts are written in TypeScript and run under Bun or npx tsx. You need a GA4 numeric property ID and a Google service-account key granted Viewer access on that property. The skill is read-only and reports aggregated data only. It does not provide keyword, impression or position data, which must come from Google Search Console.
When your agent uses it
Analyze Google Analytics 4 data — review website performance, identify traffic patterns, diagnose high-bounce pages, compare time periods, and suggest data-driven improvements. Use when the user asks about analytics, website metrics, traffic analysis, conversion rates, user behavior, or performance optimization.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs TypeScript scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 8 files (67 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the lich-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add LichAmnesia/lich-skills
/plugin install lich-skills@lich-skillsOr copy only this skill to ~/.claude/skills/google-analytics:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/google-analytics &&
cp -R "$tmp/skills/google-analytics" ~/.claude/skills/google-analytics &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/google-analytics inside it instead.
Copy the skill folder to ~/.agents/skills/google-analytics to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/google-analytics &&
cp -R "$tmp/skills/google-analytics" ~/.agents/skills/google-analytics &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/google-analytics inside it instead.
Copy the skill folder to ~/.cursor/skills/google-analytics to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/google-analytics &&
cp -R "$tmp/skills/google-analytics" ~/.cursor/skills/google-analytics &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/google-analytics inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/LichAmnesia/lich-skills.git --path skills/google-analyticsOr copy the folder to ~/.gemini/skills/google-analytics yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/google-analytics:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/google-analytics &&
cp -R "$tmp/skills/google-analytics" ~/.copilot/skills/google-analytics &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/google-analytics inside it instead.
Get the folder:
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.gitThen copy lich-skills/skills/google-analytics into your agent's skills folder as google-analytics. Agents that support SKILL.md read one folder per skill.
What it does
- Daily organic SEO report
- A single-command report covering organic KPIs, daily anomaly checks, trends and top landing pages.
- Flexible GA4 queries
- A raw query client accepts any mix of metrics, dimensions, filters, ordering and date ranges.
- Prebuilt analysis types
- Overview, sources, content, devices and SEO analyses return metrics alongside prioritized recommendations.
- Bounce and device diagnostics
- Identifies high-bounce pages and compares mobile and desktop performance gaps.
- Scheduled reporting
- Documents running the daily report via cron or a scheduled agent that summarizes the top fixes.
- Read-only, least-privilege access
- Uses a service account with Viewer role and returns aggregates only, with no config writes.
Good for
- Give me a daily SEO report for my GA4 property
- How is organic search traffic doing over the last 28 days?
- Which landing pages get the most organic visits?
- Which pages have the highest bounce rates and why?
- Why is mobile converting worse than desktop?
- Compare this month's traffic against last month
Google analytics FAQ
What do I need to set up before running Google analytics?
A numeric GA4 property ID, a service-account JSON key stored outside the repo, Viewer access for that service account on the property, and one dependency installed in the scripts folder with bun install or npm install.
Can Google analytics show keyword rankings or impressions?
No. GA4 has no keyword, impression, CTR or average position data. The skill notes that this comes from Google Search Console, which is a separate API.
Does Google analytics change my Analytics configuration?
No. The skill is read-only and does not edit GA config, audiences or events.
Which data is included in the reports?
Only aggregated GA4 data is returned. The skill states it does not access individual-user or PII data.
How do I install Google analytics in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/google-analytics to use it in all your projects, or to .claude/skills/google-analytics in one project. Or install the lich-skills plugin, which includes it: /plugin marketplace add LichAmnesia/lich-skills, then /plugin install lich-skills@lich-skills.
Does Google analytics run scripts?
Yes. It runs TypeScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Google analytics?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Google analytics?
The closest alternatives to Google analytics are AI traffic analytics, SEO audit, SEO google, SEO matomo and AI visibility.
Where this comes from
- Description: from the skill's own SKILL.md.
More from LichAmnesia/lich-skills

Loops a failing build, typecheck, lint or test until the check exits 0
- Open source
- 233 GitHub stars
- Developer tools

Guides an agent through a hypothesis-driven loop for hard-to-find bugs
- Open source
- 233 GitHub stars
- Developer tools

Guides the agent to build distinctive, polished frontend interfaces instead of generic
- Open source
- 233 GitHub stars
- Design and media

Gates new project ideas with memory checks and kill criteria before any work starts
- Open source
- 233 GitHub stars
- Productivity

Generates and edits images from text prompts using Google's Nano Banana 2 model
- Open source
- 233 GitHub stars
- Design and media

Routes an agent to the right lich-skill for each phase of its current task
- Open source
- 233 GitHub stars
- Developer tools





