attribution
Helps your agent understand which marketing actions generate the most results. It can choose or interpret attribution models to know what really works.
What it does
This tool helps understand which marketing efforts actually generated sales or results. It compares different methods to find out what works best.
When to use it
- ✓When you don't know which ad or post generated a sale.
- ✓When different reports show conflicting sales numbers.
- ✓When you want to know the true cost of acquiring a customer.
Example of what to ask your AI
“Which attribution model should I use to understand my sales?”
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
Ready-to-paste message
How it works
It analyzes marketing data and applies different rules (models) to distribute credit for sales. Each model tells a different story about what worked.
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 attributionOr download just the file:
curl -L https://raw.githubusercontent.com/coreyhaines31/marketingskills/main/skills/attribution/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
Attribution
You help users answer the hardest question in marketing: which of my efforts actually caused this conversion and this revenue? Attribution is where marketers lose the most money — to channels that look good in one dashboard and terrible in another, to "direct" and "branded search" that hide the real source, and to models that quietly encode an opinion as if it were fact.
This skill has two pillars. Know which one the user needs before you dive in:
- (A) Interpretation — choosing an attribution model, picking a measurement approach, and reconciling the conflicting numbers your tools report. This applies to everyone, even with zero engineering.
- (B) Own your attribution (first-party) — instrumenting and stitching attribution yourself when you control the site/app. This is the build track. Use it when the user says "I want to track this myself" or is hitting a conversion that lives on a domain they don't own.
Most requests start with (A). Reach for (B) only when they control the surface and want to build.
Product context: check for .agents/product-marketing.md and read it if present — business type, sales cycle, and primary conversion drive almost every recommendation here.
Boundaries — what this skill does NOT own
State these up front so you don't rebuild neighboring skills:
- General event tracking, tracking plans, UTM setup, GA4/GTM → analytics. Attribution assumes tracking exists. The line: analytics = "what events and how to fire them"; attribution = "how touches join to conversions and survive to revenue."
- Ad-platform pixels, CAPI, server-side conversion tracking → ads (
references/conversion-tracking.md). Attribution consumes platform-reported numbers and corrects for their bias; it doesn't set up the pixels. - Pipeline stages, lead lifecycle, CRM revenue dashboards → revops. Attribution feeds pipeline data; it doesn't define stages.
- Showing up in / measuring AI search → ai-seo. Attribution names AI traffic as a blind spot only.
Pillar A — Interpretation
1. What attribution can and can't tell you
Set expectations before touching a number:
- Attribution is directional, not truth. It's a model of causality built from incomplete data (cookies expire, sessions fragment, offline touches vanish, people research on one device and buy on another). Treat it as a strong hint, never a verdict.
- Every model is an opinion. "First-touch" says the first ad gets all the credit; "last-touch" says the closing click does. Both are wrong in opposite directions. Choosing a model is choosing whose story to believe — say so out loud.
- The attribution gap is normal, so separate outcomes from credit. The sum of channel-reported conversions almost always exceeds real conversions, because every platform claims the same sale under its own attribution window and view-through rules. Count real conversions once, deduplicated against one source of truth, and explain platform credit separately. The two won't tie out, and a modeled allocation never replaces the conversion ledger.
When a user demands one true number, reframe: "We can get you a defensible, consistent number and a read on which channels are trending up. A single objective truth doesn't exist — here's why, and here's what we use to make decisions anyway."
2. Attribution models
The classic rule-based set plus data-driven — and when each one lies. Last non-direct is a last-touch variant (skip the junk drawer), not a separate school of thought.
| Model | Credit rule | Best for | How it lies |
|---|---|---|---|
| First-touch | 100% to the first known touch | Top-of-funnel / demand-gen valuation; short cycles | Ignores everything that closed the deal; over-credits awareness channels |
| Last-touch | 100% to the last touch before conversion | Direct-response, quick e-comm | Over-credits bottom-funnel + branded search/direct; ignores what created demand |
| Last non-direct | 100% to last touch, skipping "direct" | A cheap fix for direct pollution | Still single-touch; just moves the blind spot |
| Linear | Equal credit to every touch | Long, multi-touch journeys where every step matters | Treats a throwaway visit like a demo; flatters high-frequency channels |
| Time-decay | More credit to touches nearer conversion | Longer cycles where recency matters | Under-credits the top of funnel; still an assumption, not a measurement |
…
FAQ
What is an attribution model?
It's a rule that dictates how to assign credit for sales. For example, 'first-touch' gives all credit to the first ad a customer saw, and 'last-touch' gives all credit to the last ad.
Why do my reports show different numbers?
Each tool (Google Ads, Facebook, etc.) uses its own rules for assigning credit, and data is often incomplete. Attribution helps understand these differences and gain a clearer picture.
Can I know the absolute truth about my sales?
There isn't one single absolute truth. Attribution provides a defensible and consistent view for decision-making, but it's important to understand it's a model, not an immutable fact.
Details
Original description by the author
When the user wants to figure out which marketing actually drives conversions and revenue, choose or interpret an attribution model, or reconcile conflicting numbers across tools. Also use when the user mentions "attribution," "attribution model," "first-touch vs last-touch," "multi-touch," "which channel drives revenue," "what's my real CAC," "my dashboards disagree," "Google/Meta says X but GA s
Popularity
- GitHub stars
- 55k
- Ranking position
- #1758
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
ab-testing
Helps your agent plan and run A/B tests. It's useful for comparing different versions of something to see which works better.
coreyhaines31/marketingskills
ad-creative
Has your agent create and improve ads. It's useful for generating more effective ad copy for different platforms.
coreyhaines31/marketingskills
ads
Helps your agent with paid advertising campaigns. It's useful for managing ads on platforms like Google and Facebook.
coreyhaines31/marketingskills
ai-seo
Helps your agent optimize content for AI searches. It's useful for getting your content to appear in AI-generated answers.
coreyhaines31/marketingskills
Similar skills
competitive-platform-analysis
Helps understand your competitors. It identifies, categorizes, and filters competing companies before any deeper analysis.
affaan-m/ECC
competitive-report-structure
Creates comprehensive competitor reports. It combines information to show the overall landscape, recommendations, and helps align the team.
affaan-m/ECC
lead-intelligence
Helps your agent find and contact important people. It analyzes leads, suggests approaches, and manages outreach via email and social media.
affaan-m/ECC