PlugWiki

analytics Skill for Claude Code: Plan and Audit GA4, GTM and UTM Tracking

Builds a tracking plan and helps set up GA4, Google Tag Manager, event names and UTM parameters, or audits tracking that is broken.

Installs
88.4K
on skills.sh
Stars
57.9K
on GitHub
Files
4
besides SKILL.md
Updated
Oct 2026
last repo commit

analytics makes your assistant act as an analytics implementation expert. It starts with your business context, what tracking already exists and your tech stack, then produces a tracking plan: events named in an object-action format, their properties, and the essential events for a marketing site and for a product or app.

It covers GA4 setup, Google Tag Manager containers and data layer patterns, a UTM naming strategy (including traffic from AI assistants), a validation checklist and privacy considerations. It triggers on prompts like 'set up tracking', 'GA4', 'UTM parameters' or 'are my events firing'. It bundles event-library, GA4 and GTM reference files and an evals/evals.json file, and no scripts.

Good for

  • Marketers who need a tracking plan before they ask a developer
  • Developers wiring GA4 or GTM events into a site
  • Teams whose events or UTMs are inconsistent

Install analytics

Claude Code

  1. 1

    Copy this prompt.

    Install the analytics skill in Claude Code. Run this command:
    
    npx skills add https://github.com/coreyhaines31/marketingskills --skill analytics
    
    Then check that it loaded and tell me how to use it.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

From its listing on skills.sh. Source.

What's in the skill

When it loads

When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions "set up tracking," "GA4," "Google Analytics," "event tracking," "UTM parameters," "tag manager," "GTM," "analytics implementation," "tracking plan," "how do I measure this," "Mixpanel," "Segment," "are my events firing," or "analytics isn't working." Use this whenever someone asks how to know if something is working or wants to measure marketing results. For getting conversions into ad platforms (pixels, conversion tags, CAPI, server-side) and verifying they arrived, see conversion-tracking. For choosing attribution models, comparing multi-touch/MMM/incrementality, or reconciling conflicting numbers across tools, see attribution. For A/B test measurement, see ab-testing. Rate metrics divide matching closed windows — never full-period spend by partial-period results.

Sections in SKILL.md

  1. Initial Assessment
  2. Core Principles
  3. 1. Track for Decisions, Not Data
  4. 2. Start with the Questions
  5. 3. Name Things Consistently
  6. 4. Maintain Data Quality
  7. 5. Compute, Don't Eyeball
  8. 6. Match Observation Windows
  9. 7. Recommend Against the Stated Goal
  10. Tracking Plan Framework
  11. Structure
  12. Event Types
  13. Event Naming Conventions
  14. Recommended Format: Object-Action
  15. Best Practices
  16. Essential Events

Key facts

Installs on skills.sh
88,402 (Nov 2, 2026)
GitHub stars (whole repo)
57,855 (Nov 2, 2026)
License
MIT
Last repo commit
Oct 31, 2026

What it includes

  • Asks about business decisions, current tracking and tech stack

    Initial Assessment

  • Structures events, properties and naming (object-action format)

    Tracking Plan Framework

  • Lists events for a marketing site and for a product or app

    Essential Events

  • Quick setup and event examples, with a bundled GA4 reference

    GA4 Implementation

  • Container structure and data layer pattern, with a bundled GTM reference

    Google Tag Manager

  • Standard parameters, naming conventions and patterns by partner type

    UTM Parameter Strategy

  • Testing tools, a validation checklist and common issues

    Debugging and Validation

  • A tracking plan document with events, dimensions and conversions

    Output Format

From the official docs

Questions

What does the analytics skill do?

It helps you plan, set up and audit analytics tracking. The main output is a tracking plan, plus GA4, Google Tag Manager and UTM guidance.

How do I install the analytics skill?

Use the install box at the top of this page. The repo's README also offers a Claude Code plugin called marketing-skills that installs every skill in the collection, and a Codex plugin route for the same set. Pick one skill only if you want just this one. If you ask an agent session to run npx skills for you, the README says to pass -a claude-code, because the CLI may otherwise install only to .agents/skills/, which Claude Code does not read.

Do I need the product-marketing skill first?

No. The analytics SKILL.md says to read your product marketing context file if one exists, and to ask you for anything the file does not cover. The README calls product-marketing the foundation that the other skills check first, so it helps to run it once.

Does it connect to GA4 or Mixpanel for me?

No connection is built in. The SKILL.md points to a tools registry in the repo, where GA4 is marked as having an MCP server. Mixpanel, Amplitude, PostHog and Segment are listed without one.

How is it different from the conversion-tracking skill?

Its Related Skills section sends getting conversions to ad platforms and GA4, and verifying they arrive, to conversion-tracking. Attribution models go to attribution. This skill covers the tracking plan, GA4, GTM and UTMs.

Does it work in Codex, Cursor or only Claude Code?

The README says the collection works with Claude Code, OpenAI Codex, Cursor, Windsurf, and any agent that supports the Agent Skills spec. It does not list test results per skill.

Is the analytics skill safe to install?

It is a markdown skill. The folder bundles reference files and an evals/evals.json file, and no scripts. The SKILL.md names no API key. It changes how your assistant works in your project, so read the SKILL.md if you need to review it first.

Information

updated Nov 2, 2026

Folder
skills/analytics

coreyhaines31/marketingskillsskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 3
  1. analytics SKILL.md · github.com
  2. marketingskills README · github.com
  3. analytics on skills.sh · skills.sh

Updated Nov 2, 2026.