# Marketing Attribution skill for Claude

Lines up what your ad platforms, GA4 and your CRM each claim, counted once

A 4-minute lesson on reporting & attribution, updated on 30 November 2026

- Download: [marketing-attribution.zip 39 KB](https://claudemarketingskills.com/downloads/marketing-attribution.zip)

- SKILL.md: 287 lines, 7 files in the folder

- Works in: claude.ai, Claude Code

- Recorded run: 7 steps on a sample job

These 7 slides give the short version of the lesson

## Watch it work

This is one real run on a sample job, replayed as it happened

Read the run as text

Google Ads says 498 purchases in October, Meta 374, GA4 541, Shopify 612 orders. My cofounder wants to cut Meta and move it to Google. Who's right? Exports attached

- google-ads-campaigns-oct.csv 3 rows
- meta-ads-oct.csv 2 rows
- ga4-traffic-acquisition-oct.csv 8 rows
- shopify-orders-by-day-oct.csv 31 rows
- post-purchase-survey-oct.csv 7 rows

Claude Marketing Attribution skill

Lining up 5 exports for Oct 1 to Oct 31: Google Ads, Meta, GA4, 612 Shopify orders, 318 survey answers

October purchases, as each source counts them

- Shopify orders 612 source of truth
- Google + Meta claims 872 1.42x real orders
- Google Ads 498
- Meta 374 163 view-through
- GA4 541 88% of Shopify

Shopify's 612 orders are the count

Google and Meta both claim the same sales, so their 872 is never summed. Meta counts 163 view-through purchases; GA4 hands the last click to whatever people use to come back.

Where buyers finish vs where they start

| Channel | Last touch (GA4) | First heard (survey) |
|---|---|---|

| Google search, paid + organic | 58.6% | 20.1% |
| Meta ads | 17.7% | 27.7% |
| Friend, family or podcast | 0% | 30.8% |
| Email | 13.7% | n/a |

Where the real orders came from

| Channel | Platform claims | Our read | Confidence |
|---|---|---|---|

| Meta | 374 | ~150 | Medium-low |
| Google non-brand + PMax | 213 | ~95 | Medium |
| Paid brand search | 285 | ~70 | Low |
| Word of mouth, podcast, TikTok | none | ~90 | Medium-low |

How sure the read is and what is missing 1 passed 4 need a look

- passed: One source of truth: Shopify orders, platform claims not summed
- needs a look: Branded search is 29% of GA4 purchases, demand created elsewhere
- needs a look: 31% first heard from a friend or podcast, invisible to tracking
- needs a look: AI assistants: 8 GA4 purchases plus 5 survey mentions
- needs a look: Google Ads primary conversion actions not checked yet

### The recommendation

- Don't cut Meta on GA4's numbers: about $41 per order vs about $66 for non-brand Google
- Keep the split through the holiday peak, because a change then can't be read
- Run a 4-week Meta prospecting geo holdout in January, compare Shopify orders by region
- Add 'AI assistant' and 'Gift guide or blog' to the survey pick-list

## A worked example

Should we cut Meta for Google?

The request

Google Ads says 498 purchases in October, Meta 374, GA4 541, Shopify 612 orders. My cofounder wants to cut Meta and move it to Google. Who's right? Exports attached

- google-ads-campaigns-oct.csv 3 rows
- meta-ads-oct.csv 2 rows
- ga4-traffic-acquisition-oct.csv 8 rows
- shopify-orders-by-day-oct.csv 31 rows
- post-purchase-survey-oct.csv 7 rows

Where buyers finish vs where they start

| Channel | Last touch (GA4) | First heard (survey) |
|---|---|---|

| Google search, paid + organic | 58.6% | 20.1% |
| Meta ads | 17.7% | 27.7% |
| Friend, family or podcast | 0% | 30.8% |
| Email | 13.7% | n/a |

Sections of the full answer

- The question
- Source of truth
- What each source says
- Model comparison
- How sure the read is
- Recommendation

What came back

The recommendation

- Don't cut Meta on GA4's numbers: about $41 per order vs about $66 for non-brand Google
- Keep the split through the holiday peak, because a change then can't be read
- Run a 4-week Meta prospecting geo holdout in January, compare Shopify orders by region
- Add 'AI assistant' and 'Gift guide or blog' to the survey pick-list

## How it works

### Why every source disagrees

Ad platforms over-count themselves because each claims view-through and click conversions in its own window. GA4 leans toward the last non-direct click and drops cross-device and cookie-blocked visitors into direct.

The CRM reflects whatever the rep typed or the form captured, and a survey favours the most memorable touch. Claude reads the trend all sources agree on and reports the gap as over-claiming, view-through and untracked conversions.

### How each attribution model skews credit

The table covers first-touch, last-touch, last non-direct, linear, time-decay, position-based at 40% first, 40% last and 20% middle, and data-driven. Google Ads and GA4 retired first-click, linear, time-decay and position-based as reporting options in 2023, so the skill treats those as models you compute on your own event path or CRM data. Data-driven attribution needs about 200 conversions and 2,000 ad interactions in 30 days by Google's guidance; below that it drifts toward last-click.

### Choosing a way to measure what ads really add

Multi-touch attribution splits credit inside tracked journeys, media mix modeling regresses spend against outcomes over 2 to 3 years of weekly data, and incrementality tests withhold ads from a group. A small budget with a short cycle gets UTMs, last non-direct and a survey. A mid budget gets MTA plus periodic tests on the biggest lines, and a large budget with offline spend gets MMM checked by holdouts.

### Asking buyers how they heard of you

Claude recommends asking at signup, first purchase or demo request, with a pick-list of your channels plus a free-text other field. The answers catch podcasts, word of mouth and private shares that tracking cannot see. Survey share is discounted before it becomes credit: 22% recalling YouTube shows awareness rather than a claim to 22% of conversions.

### Following buyers across your own domains

When a booking or checkout finishes on a domain you do not control, a link decorator adds the visitor's anonymous ID to the outbound URL through the tool's metadata field. The tool returns it in a webhook, and your handler merges identities and records the conversion. A guard sends only anonymous IDs, rejects values containing @, and sends nothing when identity is unclear.

## Rules it follows

Each rule comes from the skill's own instructions, with the reason behind it

- 1

Pick one source of truth for the conversion count, usually your CRM or backend

Without one fixed count, each tool redefines how many conversions there were

- 2

Never sum across platforms

Every platform claims the same sale under its own window, so the sum always exceeds real conversions

- 3

For a long sales cycle, show first-touch and last-touch side by side rather than one model alone

The two models err in opposite directions, and the difference between them shows what each one hides

- 4

Do not turn a platform-vs-GA gap into a multiplier rule

Meta claiming twice what GA4 shows calls for checking windows and view-through and running a test rather than doubling Meta's credit

- 5

Exclude OAuth and checkout referrers, your own subdomains and dev hosts from referrer classification

Redirects such as accounts.google.com or checkout.stripe.com overwrite the real first touch

## What you give it and what you get

### You give it

- Conversion and spend reports from each ad platform for one date range
- GA4 key events by source, medium and campaign
- CRM deals or store orders for the same dates
- How-did-you-hear survey answers, if you collect them
- Your business type and sales cycle length

### You get back

- An attribution readout table: each channel by platform, GA4, CRM and survey numbers
- First-touch and last-touch compared, with what the gap means
- A confidence level per channel and the test worth running next
- Wording for a "How did you hear about us?" survey
- A first-party tracking plan for conversions on a booking or checkout domain

## Tasks it fits

- Google Ads, Meta and GA4 report different conversion counts for the same month
- Direct and branded search take most of the credit and you suspect podcasts or word of mouth
- You need to choose a holdout or on/off test, or decide whether MMM is worth it, before moving budget

### Prompts to start with

Google Ads says 52 conversions last month, Meta says 41, GA4 says 60 and HubSpot shows 34 new deals. Which numbers should I report?

Half our signups come in as direct. Write a how-did-you-hear survey and tell me how to fold the answers into channel credit

Our demo bookings happen on Calendly and never join to PostHog visits. How do I connect them to first-touch source?

## Adding it to Claude

Open the zip and read every file before you add it

### claude.ai

Download `marketing-attribution.zip`, upload it as it is under Settings, Capabilities, Skills and then ask for the job in a new chat

### Claude Code

```
unzip marketing-attribution.zip -d ~/.claude/skills/
```

Or move the `attribution` folder from the zip into `.claude/skills/` inside one project

Anthropic's help pages [Use skills in Claude](https://support.claude.com/en/articles/12512180-use-skills-in-claude) and [Skills in Claude Code](https://code.claude.com/docs/en/skills) explain the steps in more detail

[marketing-attribution.zip 39 KB](https://claudemarketingskills.com/downloads/marketing-attribution.zip) 7 files listed below

- attribution/
- CHANGES.md 3 KB
- SKILL.md 29 KB
- evals/
- evals.json 13 KB
- references/
- attribution-models.md 7 KB
- by-business-type.md 8 KB
- first-party-tracking.md 19 KB
- measurement-paradigms.md 10 KB

## Questions

Will it give me one true number per channel?

No, it gives one consistent count from a single source of truth and treats platform numbers as claims to explain

Can it build a media mix model?

It explains when a media mix model is worth it and what it needs, and the model itself is built in a tool such as Robyn

## Reporting & attribution

- [Marketing Attribution](https://claudemarketingskills.com/skills/marketing-attribution.html)
- [Campaign Analytics](https://claudemarketingskills.com/skills/campaign-analytics.html)
- [Attribution Audit](https://claudemarketingskills.com/skills/attribution-audit.html)
- [Attribution Reconciler](https://claudemarketingskills.com/skills/attribution-reconciler.html)
- [Ad Campaign Analyzer](https://claudemarketingskills.com/skills/ad-campaign-analyzer.html)
- [Meta Ads Analyzer](https://claudemarketingskills.com/skills/meta-ads-analyzer.html)
- [Ads Performance Analytics](https://claudemarketingskills.com/skills/ads-performance-analytics.html)

---

HTML version: https://claudemarketingskills.com/skills/marketing-attribution.html
