Copydesk

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

SKILL.md
287 lines, 7 files in the folder
Works in
claude.ai, Claude Code

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.csv3 rows
  • meta-ads-oct.csv2 rows
  • ga4-traffic-acquisition-oct.csv8 rows
  • shopify-orders-by-day-oct.csv31 rows
  • post-purchase-survey-oct.csv7 rows
ClaudeMarketing 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 orders612source of truth
  • Google + Meta claims8721.42x real orders
  • Google Ads498
  • Meta374163 view-through
  • GA454188% 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
ChannelLast touch (GA4)First heard (survey)
Google search, paid + organic58.6%20.1%
Meta ads17.7%27.7%
Friend, family or podcast0%30.8%
Email13.7%n/a
Where the real orders came from
ChannelPlatform claimsOur readConfidence
Meta374~150Medium-low
Google non-brand + PMax213~95Medium
Paid brand search285~70Low
Word of mouth, podcast, TikToknone~90Medium-low
How sure the read is and what is missing1 passed4 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.csv3 rows
  • meta-ads-oct.csv2 rows
  • ga4-traffic-acquisition-oct.csv8 rows
  • shopify-orders-by-day-oct.csv31 rows
  • post-purchase-survey-oct.csv7 rows

Where buyers finish vs where they start

ChannelLast touch (GA4)First heard (survey)
Google search, paid + organic58.6%20.1%
Meta ads17.7%27.7%
Friend, family or podcast0%30.8%
Email13.7%n/a

Sections of the full answer

  1. The question
  2. Source of truth
  3. What each source says
  4. Model comparison
  5. How sure the read is
  6. 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. 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. 2

    Never sum across platforms

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

  3. 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. 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. 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 and Skills in Claude Code explain the steps in more detail

marketing-attribution.zip39 KB7 files listed below
  • attribution/
  • CHANGES.md3 KB
  • SKILL.md29 KB
  • evals/
  • evals.json13 KB
  • references/
  • attribution-models.md7 KB
  • by-business-type.md8 KB
  • first-party-tracking.md19 KB
  • measurement-paradigms.md10 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