andreybegma/claude-code-plugin/analytics

Claude Code and agent skill by andreybegma/claude-code-plugin

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Critical data-driven UX & code analysis from GA4/GSC — user flows, funnels, behavioral anomalies, code-level root causes

Install

npx vskill@latest install andreybegma/claude-code-plugin/analytics

SKILL.md

The same SKILL.md was published earlier as andreybegma/claude-code-plugin/analytics.

Analytics — Critical Data-Driven UX & Code Analysis

Analyze GA4 and GSC CSV exports to find behavioral anomalies, conversion bottlenecks, and user flow problems. Cross-reference findings with actual source code to identify root causes at the implementation level. Every finding is backed by data evidence and formulas — no soft language, no sugar-coating.

Tone: Be direct and critical about confirmed problems. "This page loses 73% of users because the form is broken" — not "There may be an opportunity to improve the form experience." If something is bad, say it's bad. If money is being lost, say how much. Stakeholders need wake-up calls, not comfort.

Critical distinction — confirmed vs untracked:

  • Confirmed problem: GA4 shows the event fires but drops off, OR code inspection + visual replay together confirm broken behavior. Use blunt language.
  • Untracked / external platform: GA4 shows zero events on a page or funnel step, but the flow may continue on a different domain, a different app, or simply without tracking. Do NOT say "broken", "failing", or "100% failure rate". Say "we can't measure this from the available data."
  • Absence of GA4 events ≠ absence of conversions. Absence of GA4 events ≠ broken feature.

Never recommend removing authentication, rewriting architecture, or changing business logic based solely on missing GA4 events. If auth is required by the product (e.g., bookings need a user record in the database), that is a design constraint — not a bug. Investigate before recommending architectural changes.

GA4/GSC File Patterns

PatternContains
*Landing_page*.csvGA4 entry pages
*Pages_and_screens*.csvGA4 all pages
*Events*.csvGA4 user events
Queries*.csvGSC search queries
Pages*.csvGSC page performance
Chart*.csvGSC daily trends

Supports localized column names (auto-detected).

Analytics Benchmarks

MetricTypical RangeContext
Form completion (simple, 3-5 fields)30-50%No login required
Form completion (complex, 6+ fields)15-25%Multi-step
Cart → purchase25-45%Varies by price
Newsletter signup (sitewide)1-3%Visible CTA
Contact form submission10-20%Simple form
Landing page → key event2-5%Intent dependent

Engagement time: Blog 30-90s (flag <15s), Product 40-120s (flag <20s), Homepage 20-60s (flag <10s), Checkout 60-180s (flag <20s).

Mobile vs Desktop: bounce +15-20%, form completion -10-20%, engagement -15-30%, conversion -30-50% vs desktop baseline.

Inputs

$ARGUMENTS:

  • /path/to/ga4 — path to GA4 CSV exports (folder or file)
  • /path/to/ga4 /path/to/gsc — GA4 + GSC exports (separate paths)
  • --url https://example.com — remote mode (no local project access, Browser MCP required for flow replay)
  • No arguments — scan current directory for CSV files
ModeHasResult
LocalGA4 + projectFull analysis + flow replay on local/dev server
Local+GSCGA4 + GSC + projectFull analysis with traffic × behavior cross-reference
RemoteGA4 + --urlFull analysis + flow replay on live site
Remote+GSCGA4 + GSC + --urlFull analysis with traffic cross-reference on live site
Data-onlyGA4 onlyMetrics analysis only (no flow replay without URL or project)
GSC onlyGSC without GA4Error — suggest /cs-seo instead

Step 0: Gather User Flow Context

Ask one question before analysis to prevent false positives from treating untracked external flows as broken features:

AskUserQuestion:

  • question: "Describe the intended conversion flow, including any steps on external platforms or separate apps (e.g., 'booking form → redirected to portal.example.com → payment → confirmed'). Mention off-site steps explicitly."
  • options:
  • "I'll describe it in the Other field below"
  • "Skip — analyze with available data only"

Store as user_flow_description. Set defaults for remaining context:

  • external_platforms — extract from the flow description (any domain/app mentioned as off-site)
  • avg_conversion_value — "unknown"; revenue estimates will state this assumption explicitly
  • period_anomalies — none assumed; flag any unexplained spikes/dips as needing investigation

If skipped, proceed with data-only analysis and note: "User flow not provided — all funnel gap findings are marked UNVERIFIED."

Use this context throughout the analysis:

  • When GA4 shows zero events on a step that the user said happens on an external platform → label as EXTERNAL PLATFORM (untracked), not broken
  • When GA4 shows zero events on a step where the user said tracking should exist → label as TRACKING GAP
  • When GA4 shows an event firing but the downstream step shows zero → label as CONFIRMED DROP-OFF and investigate
  • When explaining traffic spikes or dips → reference period_anomalies before flagging as a pattern
  • In all revenue impact formulas → use avg_conversion_value if provided; otherwise state the assumption explicitly

Step 1: Check Browser MCP

Try to use one of: mcp__puppeteer__*, mcp__playwright__*, or mcp__browserbase__*. Browser MCP enables replaying user flows and visual analysis of problem pages.

If no browser MCP is available, continue and note:

⚠️ Browser MCP not available — no flow replay, no screenshots, no visual root cause analysis. Recommendations will be data-only.
To enable: claude mcp add puppeteer --scope user -- npx -y @modelcontextprotocol/server-puppeteer

Step 2: Detect & Parse Data

Scan provided paths (or current directory) for CSV files. Auto-detect type by column names (supports localized exports). Use the GA4/GSC File Patterns table above to identify file types.

Determine mode:

  1. If --url provided → Remote mode. Use the URL for Browser MCP flow replay.
  2. If no --url but local project detected (package.json, framework config) → Local mode. Detect dev server URL or build the site URL from config.
  3. Otherwise → Data-only mode.

If only GSC files are found (no GA4):

❌ No GA4 data found. This skill requires GA4 exports for behavioral analysis.
→ For SEO analysis from GSC data, run: /cs-seo

Stop execution.

Output summary:

Mode: Local / Remote (https://example.com) / Data-only
GA4: Landing Pages (45), Events (28), Sessions (12,340)
GSC: Queries (1,234), Pages (89) [if available]
Period: 2026-01-05 to 2026-02-04 | Sessions: 12,340 | Key Events: 1,456

Step 3: Build User Journey Map

Important limitation: GA4 CSV exports are aggregated — they don't contain user-level path data. Flows are reconstructed from landing pages, page view counts, key events per page, and engagement patterns. State this in the report methodology.

Reconstruct the most likely user paths:

  1. Entry points: Top landing pages by session count
  2. Flow reconstruction: Combine landing page data + page view counts + key events per page to infer the most common journeys. Example: if /destinations has 191 landing sessions but 4,117 page views, most views come from internal navigation — trace where they likely come from (homepage, other destinations).
  3. External platform steps: If external_platforms from Step 0 identifies off-site steps, include them explicitly in the flow with label → [platform] (external — untracked). Do not end the flow at the last tracked event as if that's where users stop. Example: Form submit → app.example.com/checkout (external — untracked) → booking confirmed (unknown).
  4. Exit points / dead ends: Pages with high sessions but zero key events → users leave without acting. Cross-reference with external_platforms before labeling as a dead end — zero events on a redirect page is expected behavior if the flow continues externally.
  5. Completion rates: For each major flow, estimate: key_events_on_goal_page / sessions_on_entry_page × 100

For each flow, show:

  • Path: Landing → Page A → Page B → Goal (note: reconstructed, not tracked)
  • Users who started: X (from landing page sessions)
  • Users who completed: Y (from key events on goal page)
  • Completion rate: Y / X × 100 = Z%
  • Drop-off point: Where the biggest loss happens
  • Confidence: HIGH (direct landing → key event) / MEDIUM (multi-step reconstruction) / LOW (inferred from page view ratios)

Step 4: Event & Behavioral Analysis

Analyze GA4 events to find engagement anomalies and behavioral correlations. Use the Analytics Benchmarks table above for comparisons.

4a. Event Anomalies
  1. Ghost buttons: Elements with click events but near-zero conversion downstream → users click but nothing useful happens
  2. Conversion rates per event: For each key event (form_submit, add_to_cart, sign_up), calculate event_count / sessions × 100. Compare against benchmarks.
  3. Engagement anomalies: Pages with high session count but low engagement time — use page type thresholds from benchmarks (blog < 15s, product < 20s, homepage < 10s)
  4. Event sequence gaps: Expected event chains (e.g., form_start → form_submit) where the second event is disproportionately low. Flag as CRITICAL if gap > 80%.
  5. Device segmentation: If GSC Devices data is available, break down key metrics by mobile/desktop/tablet. Flag significant gaps — e.g., if mobile conversion rate is 50%+ lower than desktop, this indicates mobile UX issues.
4b. Behavioral Correlations

Find what behaviors correlate with conversion — what the DATA says works, not conventions.

  1. Engagement × conversion correlation: Group pages by engagement time ranges (0-10s, 10-30s, 30-60s, 60s+). Calculate key event rate per group. Quantify the gap.
  2. Page-type conversion comparison: Compare conversion rates across page types (blog, destination, region, contact, homepage). Identify which types drive conversions and which are dead weight.
  3. High-engagement zero-conversion pages: Pages with >60s engagement but zero key events → high-intent users with no conversion path. Biggest missed opportunities.
  4. Event co-occurrence: Check which events appear together — a brochure download correlating with form_start is a conversion signal. Use event/user counts to estimate overlap.
4c. Segment Comparison

Compare behavior across user segments derivable from CSV data:

  1. Blog visitors vs. destination visitors: Compare engagement time, key event rate, pages per session (if available). Quantify the gap.
  2. Landing page groups: Group landing pages by type (blog, destination, homepage, region). For each group: total sessions, total key events, conversion rate, avg engagement. This reveals which traffic segments actually matter.
  3. Mobile vs desktop (if GSC Devices available): Compare CTR, clicks, and positions. Cross-reference with GA4 engagement if page-level device data exists.

For each finding:

  • Data: exact numbers and percentages
  • Formula: how the metric was calculated
  • Benchmark comparison: compare to typical rates from the Analytics Benchmarks table above

Step 5: Traffic × Behavior Cross-Reference

If GSC data is available, correlate search traffic with on-site behavior:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/andreybegma/claude-code-plugin/analytics/badge)](https://verified-skill.com/skills/andreybegma/claude-code-plugin/analytics)

Something wrong with this skill or its page? Tell us.