Agent skill

Google Analytics Tool

by garrettjsmith in garrettjsmith/localseoskills

When the user wants traffic data, conversion tracking, user behavior on location pages, GBP traffic attribution, or geographic traffic patterns.

MITAuto-check passedMarketing & SEO

Install Google Analytics Tool

skills CLI
$ npx skills add garrettjsmith/localseoskills --skill google-analytics-tool -a claude-code

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

GitHub CLI
$ gh skill install garrettjsmith/localseoskills google-analytics-tool --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/garrettjsmith/localseoskills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/google-analytics-tool .claude/skills/google-analytics-tool && 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
google-analytics-tool
GitHub stars
114
Token cost
~1.8k tokens
SKILL.md length
903 words
Files
1
Skills in repo
38
Repo updated
First seen
Licence
MIT

At a glance

When the user wants traffic data, conversion tracking, user behavior on location pages, GBP traffic attribution, or geographic traffic patterns.

  • Works in 3 steps: Landing page report filtered to location… → Metrics: Sessions, users, engaged… → Compare across location pages
  • Wants traffic data
  • SKILL.md covers When to Use GA4 vs Other Tools, Critical Distinction, Core Workflows and Key Metrics and What They Mean, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Google Analytics Tool is an agent skill from garrettjsmith/localseoskills. When the user wants traffic data, conversion tracking, user behavior on location pages, GBP traffic attribution, or geographic traffic patterns. Trigger on "Google Analytics," "GA4," "traffic," "conversions," "how many leads," "phone calls," "form submissions," "where is my traffic coming from," or "is my website converting."

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Marketing & SEO, covering Marketing analytics, Programmatic SEO and Local SEO. It works with Google Analytics. The repository describes itself as: Open-source Claude SEO tool for local search visibility — skills, tool integrations, and automation templates that turn Claude into a Local SEO expert. The licence is MIT.

When your agent uses it

  • Wants traffic data
  • Conversion tracking
  • User behavior on location pages
  • GBP traffic attribution

Example prompts

  • “Google Analytics,”
  • “traffic,”
  • “conversions,”
  • “/google-analytics-tool”

Workflow steps

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

  1. Landing page report filtered to location page URLs
  2. Metrics: Sessions, users, engaged sessions, engagement rate, conversions
  3. Compare across location pages

What it can do on your machine

Read from SKILL.md and the folder at commit 405ce20. 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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

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

  • Credentials

    Names no API keys, tokens, secrets or passwords.

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

Context cost

Google Analytics Tool loads about 1.8k tokens when it runs. Until then it costs about 87 tokens; SKILL.md has 903 words of instructions outside code blocks.

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

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from garrettjsmith/localseoskills at commit 405ce20, republished under its MIT licence (© garrettjsmith). 903 words, ~1,811 tokens.

Download SKILL.mdSave it as .claude/skills/google-analytics-tool/SKILL.md (or your agent's skills folder).
name
google-analytics-tool
description
When the user wants traffic data, conversion tracking, user behavior on location pages, GBP traffic attribution, or geographic traffic patterns. Trigger on "Google Analytics," "GA4," "traffic," "conversions," "how many leads," "phone calls," "form submissions," "where is my traffic coming from," or "is my website converting."
metadata.version
1.0.0
metadata.author
Garrett Smith

Google Analytics (GA4) Tool

GA4 has an official MCP server from Google. When connected, use it for website traffic analysis, conversion attribution, and user behavior data. GA4 answers "what happens AFTER someone finds you."

When to Use GA4 vs Other Tools

You NeedUse GA4Use Instead
Traffic to location pages✅—
Conversion tracking (calls, forms, bookings)✅—
Traffic source attribution (organic vs paid vs GBP)✅—
Geographic traffic patterns✅—
User behavior (bounce rate, engagement, time on page)✅—
GBP-specific traffic (via UTM)✅—
What keywords people searched to find you❌ Very limitedGSC (query data)
Search rankings❌Local Falcon, Semrush
Backlinks❌Ahrefs
SERP features❌SerpAPI

Critical Distinction

GA4 shows what happens ON YOUR WEBSITE. It does NOT show:

  • GBP interactions that don't reach your website (calls from GBP, directions from GBP, map views)
  • Map pack clicks that go to the GBP profile, not the website
  • Local Falcon/ranking data

For complete local performance: GA4 (website) + GSC (organic queries) + GBP Insights (profile interactions) + Local Falcon (map rankings).

Core Workflows

Location Page Traffic Analysis

When: User asks "how are my location pages performing?" or "which locations get the most traffic?"

What to pull:

  1. Landing page report filtered to location page URLs
  2. Metrics: Sessions, users, engaged sessions, engagement rate, conversions
  3. Compare across location pages

How to interpret:

  • Location page with high traffic but low engagement: Content doesn't match what visitors expect — check title alignment
  • Location page with high engagement but low conversions: Missing or weak CTA (call button, form, booking link)
  • Location page with no traffic: Not indexed (check GSC) or no keyword targeting (check local-keyword-research)
  • Big traffic differences between location pages: Might reflect market size, or some pages are better optimized
Conversion Tracking

When: User asks "how many leads am I getting?" or wants to measure ROI.

Key local conversions to track:

Conversion EventHow to TrackSetup Required
Phone calls (click-to-call)Event on tel: link clicksYes — event must be configured
Form submissionsEvent on form submit/thank-you pageYes — event or thank-you page trigger
Direction requestsEvent on directions link clicksYes — event on link
Booking/schedulingEvent on booking completionYes — depends on booking system
Chat initiatedEvent on chat widget openYes — event on widget

If conversions aren't set up: Tell the user. GA4 doesn't track conversions automatically. Without configured events, you can only report traffic, not leads.

What to look for:

  • Conversion rate per traffic source (organic vs paid vs direct vs referral)
  • Conversion rate per location page
  • Which pages generate the most conversions (not just traffic)
  • Conversion trends over time (improving or declining?)
GBP Traffic Attribution

When: User wants to know how much traffic comes specifically from their Google Business Profile.

How it works: GBP website links should include UTM parameters. Common patterns:

  • utm_source=google&utm_medium=organic&utm_campaign=gbp
  • utm_source=gmb (older convention)

What to pull:

  1. Filter by source/medium matching GBP UTM parameters
  2. Sessions, users, conversions from GBP specifically
  3. Compare GBP traffic to overall organic traffic

If no UTM tracking: Most businesses don't set this up. Recommend adding UTM parameters to the GBP website URL so future data can be attributed.

Show full SKILL.md (395 more words)Show less
Geographic Traffic Analysis

When: User wants to know where their website visitors are located.

What to pull:

  1. Geographic report by city/region
  2. Filter to organic traffic only
  3. Compare against service area

How to interpret for local:

  • Traffic concentrated in one city but business serves a wider area: Need service area pages for other cities
  • Traffic from cities outside service area: Content attracting non-local visitors (may or may not be useful)
  • No traffic from a city in the service area: No content targeting that area, or not ranking there
Traffic Source Comparison

When: User wants to understand their traffic mix.

Pull traffic by source/medium:

  • Organic search (Google/Bing) → SEO working
  • Direct → Brand awareness / repeat visitors
  • Referral → Links from other sites sending traffic
  • Paid search → Google Ads / PPC
  • Social → Social media channels

Healthy local business traffic mix:

  • Organic: 40-60% (should be the largest source)
  • Direct: 20-30% (brand recognition)
  • Referral: 5-15% (healthy backlink profile)
  • Paid: varies by budget
  • If organic is under 30%, SEO needs work

Key Metrics and What They Mean

MetricWhat It IsLocal SEO Context
SessionsWebsite visitsTotal demand reaching your site
Engaged SessionsSessions with meaningful interactionMore important than raw sessions
Engagement RateEngaged sessions ÷ Total sessionsBelow 50% on location pages = content problem
ConversionsCompleted goal actionsTHE metric — everything else is a means to this
Conversion RateConversions ÷ SessionsBenchmark: 3-5% for local service businesses
Bounce RateSessions with no interactionGA4 bounce = not engaged. High bounce on location pages = bad signal
Average Engagement TimeTime actively on pageUnder 30 seconds = content isn't connecting

What to Do Next

What You FoundNext ActionSkill
Location pages with low trafficCheck GSC for indexing, then check keyword targetinggoogle-search-console-tool, local-keyword-research
Traffic but no conversionsAdd/fix CTAs, forms, click-to-calllocal-landing-pages
No conversion tracking set upConfigure GA4 events before anything elseTechnical setup needed
GBP traffic not being trackedAdd UTM parameters to GBP website URLgbp-optimization
Good traffic from organic but bad conversion rateLanding page content/design issuelocal-landing-pages
Geographic gaps in trafficBuild location pages for underserved citieslocal-landing-pages, service-area-seo
Need this in a client reportInclude traffic and conversion data in reportslocal-reporting

Default next step: Traffic without conversion tracking is vanity metrics. If GA4 events aren't configured, that's the first thing to fix — before any SEO work, you need to be able to measure results.

© garrettjsmith, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/google-analytics-tool of garrettjsmith/localseoskills.

Open the folder on GitHubat commit 405ce20

Compare with similar skills

Google Analytics Tool 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.

Google Analytics Tool compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Google Analytics Tool this skillgarrettjsmith/localseoskills114—~1.8kAutomated safety check: PassMIT
Global SEO Growthminhnv0807/ai-business-skills608—~5kAutomated safety check: PassMIT
SEONexus-JPF/note-companion870—~2.2kAutomated safety check: PassMIT
Google SEO APIsAgriciDaniel/claude-seo18k1 repos~4.2kAutomated safety check: PassMIT
AnalyticsNexus-JPF/note-companion8707 repos~2.2kAutomated safety check: PassMIT
Google Analytics 4 AnalysisLichAmnesia/lich-skills234—~2kAutomated safety check: NotesMIT

Similar skills

  • Global SEO Growth

    minhnv0807/ai-business-skills

    Covers six SEO layers for a website: crawl and index audit, local SEO, search-intent content, AI search visibility, schema markup and backlink or directory distribution.

    608 GitHub stars~5k tokensUpdated 26 days ago
    Marketing & SEOAuto-check passed
  • SEO

    Nexus-JPF/note-companion

    Use and read this skill immediately if the user request is in any way related to SEO or a site's organic search or AI search presence.

    870 GitHub stars~2.2k tokensUpdated yesterday
    Marketing & SEOAuto-check passed
  • 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.

    18k 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
  • Google Analytics 4 Analysis

    LichAmnesia/lich-skills

    Pulls Google Analytics 4 data through the Data API with TypeScript scripts and turns it into a daily SEO report or prioritized traffic and bounce-rate recommendations.

    234 GitHub stars~2k tokensUpdated 4 mo ago
    Marketing & SEOAuto-check: notes
  • Universal SEO Analysis

    AgriciDaniel/claude-seo

    Hub for site-wide SEO work: audits, technical checks, schema, content quality, local, hreflang and AI-search readiness, run through slash commands.

    18k GitHub stars~4.9k tokensUpdated 4 days ago
    Marketing & SEOAuto-check passed

More from garrettjsmith/localseoskills

All 38 skills in this repo
  • Gbp API Automation

    garrettjsmith/localseoskills

    When the user wants to programmatically manage Google Business Profiles at scale via API, automate GBP updates, build GBP management tools, or integrate GBP data into their systems.

    114 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Gbp Posts

    garrettjsmith/localseoskills

    When the user wants to create, schedule, or optimize Google Business Profile posts.

    114 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Local Content Briefs

    garrettjsmith/localseoskills

    Generate complete semantic content briefs for local SEO content — location pages, service pages, blog posts, FAQ content, and pillar pages.

    114 GitHub stars~3.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Brief

    garrettjsmith/localseoskills

    Manages persistent work state (briefs) for local SEO engagements.

    114 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check: warnings
  • Local Content Strategy

    garrettjsmith/localseoskills

    Build a complete local content strategy from keyword research output.

    114 GitHub stars~2.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Local Falcon Tool

    garrettjsmith/localseoskills

    When the user wants to run a geogrid scan, check existing scan reports, track ranking trends over time, monitor GBP changes via Falcon Guard, or analyze reviews.

    114 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Google Analytics Tool

What does Google Analytics Tool do?

When the user wants traffic data, conversion tracking, user behavior on location pages, GBP traffic attribution, or geographic traffic patterns. Google Analytics Tool is an agent skill from garrettjsmith/localseoskills. When the user wants traffic data, conversion tracking, user behavior on location pages, GBP traffic attribution, or geographic traffic patterns.

When should I use Google Analytics Tool?

Google Analytics Tool fits situations like: wants traffic data; conversion tracking; user behavior on location pages; GBP traffic attribution.

How do I install Google Analytics Tool in Claude Code?

Run `npx skills add garrettjsmith/localseoskills --skill google-analytics-tool -a claude-code`. Or copy the skill folder (skills/google-analytics-tool in garrettjsmith/localseoskills) into .claude/skills/google-analytics-tool in your project. Claude Code loads it when a task matches its description.

How do I install Google Analytics Tool in Codex?

Run `npx skills add garrettjsmith/localseoskills --skill google-analytics-tool -a codex`. Or copy the skill folder (skills/google-analytics-tool in garrettjsmith/localseoskills) into .agents/skills/google-analytics-tool in your project. Codex loads it when a task matches its description.

Can I use Google Analytics Tool 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 garrettjsmith/localseoskills --skill google-analytics-tool -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/google-analytics-tool, .gemini/skills/google-analytics-tool, .github/skills/google-analytics-tool and .opencode/skills/google-analytics-tool in your project.

What does Google Analytics Tool need to run?

SKILL.md names no scripts, command-line tools or credentials: Google Analytics Tool is instructions for the agent only.

Does Google Analytics Tool access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Google Analytics Tool 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. Review the folder before installing.

What licence does Google Analytics Tool use?

Google Analytics Tool is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Google Analytics Tool use?

About 1.8k tokens (SKILL.md is roughly 7.2k 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 Google Analytics Tool?

Skills that share tags, products or a category with Google Analytics Tool: Global SEO Growth (minhnv0807/ai-business-skills, 608 stars), SEO (Nexus-JPF/note-companion, 870 stars), Google SEO APIs (AgriciDaniel/claude-seo, 18k stars) and Analytics (Nexus-JPF/note-companion, 870 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Google Analytics Tool?

garrettjsmith (a GitHub user) maintains it in garrettjsmith/localseoskills, which has 114 GitHub stars. The repository holds 38 skills in this directory. The repository was last updated on August 15, 2026.

Source: garrettjsmith/localseoskills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.