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
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
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
- Initial Assessment
- Core Principles
- 1. Track for Decisions, Not Data
- 2. Start with the Questions
- 3. Name Things Consistently
- 4. Maintain Data Quality
- 5. Compute, Don't Eyeball
- 6. Match Observation Windows
- 7. Recommend Against the Stated Goal
- Tracking Plan Framework
- Structure
- Event Types
- Event Naming Conventions
- Recommended Format: Object-Action
- Best Practices
- Essential Events
Key facts
- Author
- Corey Haines
- 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
- Files in the skill folder
- 5 files: SKILL.md, evals/evals.json, 3 in references/
- skills.sh audits
- Gen Agent Trust Hub pass, Socket pass, Snyk pass
- Bundled references
- event-library.md, ga4-implementation.md, gtm-implementation.md
What it includes
Asks about business decisions, current tracking and tech stack
Initial AssessmentStructures events, properties and naming (object-action format)
Tracking Plan FrameworkLists events for a marketing site and for a product or app
Essential EventsQuick setup and event examples, with a bundled GA4 reference
GA4 ImplementationContainer structure and data layer pattern, with a bundled GTM reference
Google Tag ManagerStandard parameters, naming conventions and patterns by partner type
UTM Parameter StrategyTesting tools, a validation checklist and common issues
Debugging and ValidationA 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
- Repository
- coreyhaines31/marketingskills
- Folder
skills/analytics
Sources
Docs, issue trackers and discussions this page is built from.
Show all 3Hide
- analytics SKILL.md · github.com
- marketingskills README · github.com
- analytics on skills.sh · skills.sh