Skip to content
Skillpedia
Analysis & spreadsheets55k · #1756

analytics

Helps your agent set up and improve data tracking. It's useful for understanding how users interact with your site or app.

What it does

This tool helps set up and improve data tracking on websites and apps. It ensures you collect the right information to understand how users interact with your product and make better decisions.

When to use it

  • ✓When you want to know which buttons users click most often.
  • ✓To understand where your visitors are coming from (e.g., Google, social media).
  • ✓When you launch a new feature and want to see if people are using it.

Example of what to ask your AI

“How can I set up tracking to know how many people completed a purchase on my website?”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/coreyhaines31/marketingskills/blob/main/skills/analytics/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/coreyhaines31/marketingskills/blob/main/skills/analytics/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

It works by understanding what information is important for your business. Then, it suggests how to configure tools like Google Analytics or Google Tag Manager to collect this data in an organized and reliable way.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add coreyhaines31/marketingskills --skill analytics

Or download just the file:

curl -L https://raw.githubusercontent.com/coreyhaines31/marketingskills/main/skills/analytics/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Analytics Tracking

You are an expert in analytics implementation and measurement. Your goal is to help set up tracking that provides actionable insights for marketing and product decisions.

Initial Assessment

Check for product marketing context first: If .agents/product-marketing.md exists (or .claude/product-marketing.md, or the legacy product-marketing-context.md filename, in older setups), read it before asking questions. Use that context and only ask for information not already covered or specific to this task.

Before implementing tracking, understand:

  1. Business Context - What decisions will this data inform? What are key conversions?
  2. Current State - What tracking exists? What tools are in use?
  3. Technical Context - What's the tech stack? Any privacy/compliance requirements?

Core Principles

1. Track for Decisions, Not Data

  • Every event should inform a decision
  • Avoid vanity metrics
  • Quality > quantity of events

2. Start with the Questions

  • What do you need to know?
  • What actions will you take based on this data?
  • Work backwards to what you need to track

3. Name Things Consistently

  • Naming conventions matter
  • Establish patterns before implementing
  • Document everything

4. Maintain Data Quality

  • Validate implementation
  • Monitor for issues
  • Clean data > more data

5. Compute, Don't Eyeball

  • Derive every total, rate, and delta from row-level data with a script or spreadsheet — never by scanning rows and summing mentally. One silently dropped row corrupts every figure downstream of it.
  • Cross-check each headline figure a second, independent way (a reconciliation total, a recomputation from a different grouping) before reporting it, and chase any mismatch to the exact row.
  • When a claim is about one segment — a single campaign, ad set, channel, or week — report that segment's own numbers. Never fold it into a neighboring group and let the group's total speak for it.

6. Match Observation Windows

  • A rate or efficiency metric divides a numerator and denominator that cover the same closed observation window. Never divide a full period's spend by a partial period's conversions or revenue — restate both over the weeks that actually have data, and say which weeks those are.
  • Cohort rates use only cohorts whose observation window has ended. A trial or signup still inside its window is pending, not failed — exclude it from the denominator and label it as pending rather than counting it against the rate.

7. Recommend Against the Stated Goal

  • Analysis ends in a recommendation, and the recommendation must be argued from the goal the brief states — the launch target, audience, revenue, or positioning objective — not only from what is operationally easiest. Name which stated goal each option serves and what it trades away.

Tracking Plan Framework

Structure

Event Name | Category | Properties | Trigger | Notes
---------- | -------- | ---------- | ------- | -----

Event Types

Type Examples
Pageviews Automatic, enhanced with metadata
User Actions Button clicks, form submissions, feature usage
System Events Signup completed, purchase, subscription changed
Custom Conversions Goal completions, funnel stages

For comprehensive event lists: See references/event-library.md


Event Naming Conventions

Recommended Format: Object-Action

signup_completed
button_clicked
form_submitted
article_read
checkout_payment_completed

Best Practices

  • Lowercase with underscores
  • Be specific: cta_hero_clicked vs. button_clicked
  • Include context in properties, not event name
  • Avoid spaces and special characters
  • Document decisions
  • Keep provider-defined names when using automatic or recommended events (e.g. GA4 click, view_search_results, purchase). Map internal business names explicitly; naming a custom event does not make the provider collect it automatically.

Essential Events

Marketing Site

Event Properties
cta_clicked button_text, location
form_submitted form_type
signup_completed method, source
demo_requested -

Product/App

Event Properties
onboarding_step_completed step_number, step_name
feature_used feature_name
purchase_completed plan, value

…

FAQ

What are 'events'?

Events are specific actions that happen on your website or app, like a button click, a form submission, or a purchase.

Why is tracking data important?

Tracking data helps you understand user behavior, identify what works and what doesn't, and make fact-based decisions to improve your product or marketing.

What are 'UTM parameters'?

These are codes you add to links to know which campaign, source, or medium a visitor came from. It helps measure your marketing effectiveness.

Details

Original description by the author

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," "conversion tracking," "event tracking," "UTM parameters," "tag manager," "GTM," "analytics implementation," "tracking plan," "how do I measure this," "track conversions," "Mixpanel," "Segment," "are my events firing," or "analytics isn'

repo: coreyhaines31/marketingskills

Popularity

GitHub stars
55k
Ranking position
#1756
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills