Query Google Analytics 4 (GA4) data via the Analytics Data API.

No licenceAuto-check passed

Install Ga4

skills CLI
$ npx skills add sundial-org/awesome-openclaw-skills --skill ga4 -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sundial-org/awesome-openclaw-skills ga4 --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sundial-org/awesome-openclaw-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ga4 .claude/skills/ga4 && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ga4
GitHub stars
663
Token cost
~565 tokens
SKILL.md length
133 words
Files
3 (incl. scripts)
Skills in repo
383
Repo updated
First seen
Licence
None found

At a glance

Query Google Analytics 4 (GA4) data via the Analytics Data API.

  • Works in 3 steps: Enable Google Analytics Data API:… → Create OAuth credentials or use existing… → Set environment variables
  • You need to pull website analytics like top pages
  • SKILL.md covers Setup (one-time), Common Queries, Available Metrics and Available Dimensions, plus 1 more section
  • Runs Python scripts from its folder; calls python3; needs GOOGLE_CLIENT_SECRET and GOOGLE_REFRESH_TOKEN

What it does

Ga4 is an agent skill from sundial-org/awesome-openclaw-skills. Query Google Analytics 4 (GA4) data via the Analytics Data API. Use when you need to pull website analytics like top pages, traffic sources, user counts, sessions, conversions, or any GA4 metrics/dimensions. Supports custom date ranges and filtering.

Its SKILL.md is about 570 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `scripts/ga4_auth.py` and `scripts/ga4_query.py`).

It works with Google Analytics. The repository describes itself as: Top OpenClaw skills, with the most popular and useful ones.

When your agent uses it

  • You need to pull website analytics like top pages
  • Traffic sources
  • Any GA4 metrics/dimensions

Example prompts

  • “/ga4”

Requirements

  • Python 3
  • A credential in GOOGLE_CLIENT_SECRET
  • A credential in GOOGLE_REFRESH_TOKEN

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Enable Google Analytics Data API: https://console.cloud.google.com/apis/library/analyticsdata.googleapis.com
  2. Create OAuth credentials or use existing Google Cloud project
  3. Set environment variables

What it can do on your machine

Read from SKILL.md and the folder at commit b80cde2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • console.cloud.google.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GOOGLE_CLIENT_SECRET
    • GOOGLE_REFRESH_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ga4 loads about 565 tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 133 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~565

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 133 words (~565 tokens).

“Query GA4 properties for analytics data: page views, sessions, users, traffic sources, conversions, and more.”

— opening of SKILL.md by sundial-org
name
ga4

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files (scripts) in skills/ga4 of sundial-org/awesome-openclaw-skills.

  • SKILL.md
  • scripts/ga4_auth.py
  • scripts/ga4_query.py

Open the folder on GitHubat commit b80cde2

Compare with similar skills

Ga4 next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ga4 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ga4 this skillsundial-org/awesome-openclaw-skills663—~565Automated safety check: PassNone
Google SEO APIsAgriciDaniel/claude-seo19k1 repos~4.2kAutomated safety check: PassMIT
AnalyticsNexus-JPF/note-companion8707 repos~2.2kAutomated safety check: PassMIT
Blog GoogleAgriciDaniel/claude-blog2.3k1 repos~3.3kAutomated safety check: NotesMIT
SEO GoogleAgriciDaniel/codex-seo7972 repos~3.4kAutomated safety check: PassMIT
C15tc15t/c15t1.9k1 repos~1.6kAutomated safety check: PassApache-2.0

Similar skills

  • Google SEO APIs

    AgriciDaniel/claude-seo

    Pulls real Google data for SEO work: Search Console, PageSpeed Insights, CrUX field data, the Indexing API and GA4 organic traffic, through /seo google commands.

    19k GitHub starsUsed in 1 repo~4.2k tokens
    Marketing & SEOAuto-check passed
  • Analytics

    Nexus-JPF/note-companion

    When the user wants to set up, improve, or audit analytics tracking and measurement.

    870 GitHub starsUsed in 7 repos~2.2k tokens
    Marketing & SEOAuto-check passed
  • Blog Google

    AgriciDaniel/claude-blog

    Google API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity…

    2.3k GitHub starsUsed in 1 repo~3.3k tokens
    Marketing & SEOAuto-check: notes
  • SEO Google

    AgriciDaniel/codex-seo

    Google SEO APIs: Search Console (Search Analytics, URL Inspection, Sitemaps), PageSpeed Insights v5, CrUX field data with 25-week history, Indexing API v3, and GA4 organic traffic.

    797 GitHub starsUsed in 2 repos~3.4k tokens
    Frontend & DesignAuto-check passed
  • C15t

    c15t/c15t

    Work with c15t consent management docs, APIs, and integrations for Next.js, React, and JavaScript.

    1.9k GitHub starsUsed in 1 repo~1.6k tokens
    Legal & ComplianceAuto-check passed
  • AI Visibility

    Ryze-AI-Adgent/open-seo-mcp-skills

    Measure real AI-engine visibility — traffic from ChatGPT, Perplexity, Claude, Gemini and which pages they cite — from actual GA4 referral data, not prompt sampling.

    4.6k GitHub stars~611 tokensUpdated 15 days ago
    Marketing & SEOAuto-check passed

More from sundial-org/awesome-openclaw-skills

All 383 skills in this repo
  • UI UX Pro Max

    sundial-org/awesome-openclaw-skills

    UI/UX design intelligence and implementation guidance for building polished interfaces.

    663 GitHub starsUsed in 2 repos~657 tokens
    Auto-check passed
  • Web Deploy GitHub

    sundial-org/awesome-openclaw-skills

    Create and deploy single-page static websites to GitHub Pages with autonomous workflow.

    663 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Clawd Modifier

    sundial-org/awesome-openclaw-skills

    Modify Clawd, the Claude Code mascot. An agent skill from sundial-org/awesome-openclaw-skills.

    663 GitHub stars~625 tokensUpdated 7 mo ago
    Auto-check passed
  • Figma

    sundial-org/awesome-openclaw-skills

    Professional Figma design analysis and asset export. An agent skill from sundial-org/awesome-openclaw-skills.

    663 GitHub stars~1.7k tokensUpdated 7 mo ago
    Auto-check: notes
  • Habit Flow

    sundial-org/awesome-openclaw-skills

    AI-powered atomic habit tracker with natural language logging, streak tracking, smart reminders, and coaching.

    663 GitHub stars~3.1k tokensUpdated 7 mo ago
    Auto-check passed
  • Edge Tts

    sundial-org/awesome-openclaw-skills

    Text-to-speech conversion using node-edge-tts npm package for generating audio from text.

    663 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed

Questions about Ga4

What does Ga4 do?

Query Google Analytics 4 (GA4) data via the Analytics Data API. Ga4 is an agent skill from sundial-org/awesome-openclaw-skills. Query Google Analytics 4 (GA4) data via the Analytics Data API.

When should I use Ga4?

Ga4 fits situations like: you need to pull website analytics like top pages; traffic sources; any GA4 metrics/dimensions.

How do I install Ga4 in Claude Code?

Run `npx skills add sundial-org/awesome-openclaw-skills --skill ga4 -a claude-code`. Or copy the skill folder (skills/ga4 in sundial-org/awesome-openclaw-skills) into .claude/skills/ga4 in your project. Claude Code loads it when a task matches its description.

How do I install Ga4 in Codex?

Run `npx skills add sundial-org/awesome-openclaw-skills --skill ga4 -a codex`. Or copy the skill folder (skills/ga4 in sundial-org/awesome-openclaw-skills) into .agents/skills/ga4 in your project. Codex loads it when a task matches its description.

Can I use Ga4 in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sundial-org/awesome-openclaw-skills --skill ga4 -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ga4, .gemini/skills/ga4, .github/skills/ga4 and .opencode/skills/ga4 in your project.

What does Ga4 need to run?

Going by SKILL.md and its folder, Ga4 needs Python for the scripts in its folder, the command-line tools its instructions call (python3) and credentials named GOOGLE_CLIENT_SECRET and GOOGLE_REFRESH_TOKEN. Our summary lists: Python 3; A credential in GOOGLE_CLIENT_SECRET; A credential in GOOGLE_REFRESH_TOKEN.

Does Ga4 access the network?

SKILL.md names 1 domain. As links in the text: console.cloud.google.com. This is read from the text; nothing was executed.

Is Ga4 safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Ga4 use?

No licence was found for Ga4 or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Ga4 use?

About 565 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ga4?

Skills that share tags, products or a category with Ga4: Google SEO APIs (AgriciDaniel/claude-seo, 19k stars), Analytics (Nexus-JPF/note-companion, 870 stars), Blog Google (AgriciDaniel/claude-blog, 2.3k stars) and SEO Google (AgriciDaniel/codex-seo, 797 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ga4?

sundial-org (a GitHub organization) maintains it in sundial-org/awesome-openclaw-skills, which has 663 GitHub stars. The repository holds 383 skills in this directory. The repository was last updated on March 7, 2026.

Source: sundial-org/awesome-openclaw-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.