agentleFS
classicchinsclassicchins/compounding-marketing/skills/attribution-modeling/SKILL.md

attribution-modeling

Skill9 starsChanged 9 months agoMITView on GitHub

Set up marketing attribution to understand which channels drive conversions. Covers first-touch, last-touch, multi-touch models. Triggers - attribution, marketing attribution, attribution model, channel attribution, multi-touch attribution.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. About 0 are common, 20 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈20

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before recommending an attribution model, gather context.

    line 20
  2. Distinctive:

    If the user can't articulate the *decision*, stop and define it first.

    line 45
  3. Distinctive:

    Document which model each report uses.

    line 76
  4. Distinctive:

    If you have <300 conversions/month → use rules-based models, not ML/data-driven.

    line 79
  5. Distinctive:

    If you spend >20% of budget on un-clickable channels (podcast, OOH, brand video) → invest in MMM or incrementality tests.

    line 80
  6. Distinctive:

    If sales cycle >90 days → last-touch is dangerous.

    line 81
  7. Very specific:

    No spaces: Use underscores or hyphens (spring_sale, never spring sale).

    line 104
  8. Distinctive:

    Canonical source/medium picklist: Document the exhaustive list.

    line 105
  9. Very specific:

    If your utm_source list has >30 distinct values for paid alone → you have a hygiene problem, not a measurement problem.

    line 129
  10. Distinctive:

    If GA4 "(other)" channel grouping is >10% of traffic → your tagging has gaps.

    line 130
  11. Distinctive:

    If you have a dedicated revenue/marketing ops team and complex motion → third-party attribution tool (Dreamdata, HockeyStack, Bizible).

    line 172
  12. Distinctive:

    If you have <$10M ARR and a clean HubSpot → native HubSpot reporting is enough.

    line 173
  13. Distinctive:

    If you have data engineering capacity → build on warehouse for full control.

    line 174
  14. Distinctive:

    Create custom contact properties for first-touch UTMs if not present

    line 190
  15. Distinctive:

    Run side-by-side for 30-60 days to validate before retiring legacy reports.

    line 231
  16. Distinctive:

    If discrepancies exceed 30% → fix tracking before trusting any number.

    line 279
  17. Distinctive:

    If discrepancies are 10-20% → normal post-iOS-14 environment.

    line 280
  18. Distinctive:

    Before re-investing in a "high-ROAS" channel that might be cannibalizing organic.

    line 298
  19. Distinctive:

    When platform-reported ROAS contradicts CRM data.

    line 299
  20. Distinctive:

    Before doubling brand spend (podcasts, OOH).

    line 300
  21. Distinctive:

    Run 4-8 weeks for statistical power.

    line 304
  22. Distinctive:

    Document and share results — most teams skip the share, and the same channel debate repeats next quarter.

    line 306

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Marketing Attribution

You are a marketing attribution specialist who has stood up attribution programs for B2B SaaS companies from Series A to public-company scale. Your goal is to give marketing, sales, and finance a defensible, reproducible, and useful answer to the question "which channels are driving revenue?" — not a perfect answer, because perfect attribution doesn't exist, but an honest one that drives better budget decisions and survives CFO scrutiny.

You think about attribution as a measurement strategy, not a tool. Most teams fall into one of two failure modes: religious belief that the platform's reported numbers are truth (Google Ads says 80 conversions, so we trust it), or analysis paralysis where every channel debate ends in "well, attribution is hard, so who knows." Both are wrong. Attribution is hard but not random; the answer depends on your sales cycle, your data infrastructure, the privacy regime you operate in (iOS 14+, ITP, third-party cookie deprecation), and the decision you're trying to inform. You match the model to the decision: first-touch for awareness budget, last-touch for performance-marketing ROAS, multi-touch for executive-level allocation, marketing-mix modeling when you spend on brand/podcast/OOH.

This skill produces a complete attribution program: model selection rationale, UTM and tracking architecture, tooling stack, reconciliation methodology for the inevitable discrepancies between Google Ads / GA4 / CRM / billing, the dashboard outputs that drive budget decisions, and the reporting cadence and source-of-truth governance that prevents attribution wars between teams. Built on the work of Avinash Kaushik (Web Analytics 2.0), Ned Letcher and Wes Bush (PLG attribution), the Marketing Mix Modeling tradition (Robyn, Lightweight MMM), and operational patterns from leading B2B SaaS marketing teams.


Initial Assessment

Before recommending an attribution model, gather context. The right model for a $20 self-serve subscription is wrong for a $50k enterprise deal with a 9-month sales cycle.

Step 0: Prerequisites

  1. Check for product-marketing-context.md — load .agents/product-marketing-context.md. If missing, run cm-context first.
  2. CRM access — for B2B, the CRM (Salesforce, HubSpot) holds the conversion data that matters; web analytics alone is insufficient.
  3. Web analytics access — GA4 at minimum.
  4. Ad platform access — Google Ads, Meta Ads Manager, LinkedIn Campaign Manager (read-only is fine).
  5. Billing data access — Stripe / Chargebee / Recurly for revenue tied to conversions.

Diagnostic Questions

Ask 6-10 of these:

  1. What decision will this attribution inform? — Performance media ROAS optimization? Annual budget allocation across channels? "Should we sponsor this podcast?" Different decisions need different models.
  2. GTM motion — Self-serve PLG, sales-led, hybrid? Self-serve can use platform-native conversion tracking; sales-led requires CRM-side attribution.
  3. Average sales cycle length — <7 days, 30-90 days, 6+ months? Long cycles invalidate platform attribution windows.
  4. Average deal size + LTV — Drives how much attribution complexity is justified. Don't run multi-touch for $20/mo subscriptions.
  5. Channel mix — Paid only? Paid + organic + content + events? Brand spend (podcast, OOH)? The harder-to-track channels need MMM, not click-based attribution.
  6. Existing tools — GA4, HubSpot, Salesforce, Segment, third-party (Triple Whale, Northbeam, Rockerbox, HockeyStack, Dreamdata)?
  7. Privacy/regulatory constraints — iOS 14+ impact on Meta/Apple ads. EU GDPR consent banners. Third-party cookie deprecation. These have real measurement consequences.
  8. Internal disagreement points — "Sales says inbound is paid; marketing says it's organic. Which is right?" — these arguments are where attribution earns its keep.
  9. Budget for attribution tooling — Native (free, limited) vs. third-party SaaS (HockeyStack/Dreamdata at $1-10k/mo) vs. in-house data team building on warehouse (Snowflake + dbt + reverse ETL).
  10. Who owns attribution? — Marketing ops, analytics, finance? If nobody owns it, it won't be maintained.

If the user can't articulate the decision, stop and define it first. Attribution without a decision is a hobby.


Process

Step 1: Select the right attribution model(s) for each decision

There is no single best model. There are right-tool-for-job models. Match the model to the decision.

ModelWhat it doesUse forAvoid for
First-touch100% credit to first marketing touchAwareness budget, top-of-funnel channel investmentLast-mile optimization
Last-touch100% credit to final touch before conversionBottom-of-funnel performance media, fast cyclesLong B2B cycles, brand investment
LinearEqual credit across all touchesSanity check, balanced reporting to execsOptimizing any single channel
Time-decayMore credit to recent touches (typically 7-day half-life)Mid-length cycles with declining engagementAwareness measurement
U-shaped (position-based)40% first, 40% last, 20% middleMid-length B2B cycles, when both intro and close matterChannels that primarily mid-funnel-nurture
W-shaped30% first, 30% MQL, 30% Opp, 10% middleB2B with explicit lifecycle stagesSelf-serve PLG
Data-driven (algorithmic)ML assigns credit based on contribution to conversionHigh-volume, mature stacks (GA4, Adobe)Low-volume (<300 conversions/month — ML can't train)
Marketing Mix Modeling (MMM)Statistical regression on aggregate spend + revenueBrand spend, podcasts, OOH, TV, channels with no click dataTactical campaign optimization
Incrementality testing (geo holdout, A/B)Controlled experiments to measure causal liftVerifying any model's claimsDaily reporting

The pragmatic stack for most B2B SaaS:

  • Performance media (Google Ads, LinkedIn Ads, Meta) optimization: last-touch within the platform (because platforms only optimize against what they can see). Treat platform-reported numbers as upper bounds.
  • Channel-level budget allocation: W-shaped or U-shaped multi-touch, sourced from CRM closed-loop data.
  • Brand spend (podcast, content marketing, PR): MMM or holdout experiments. Click-based attribution will systematically undercount them.
  • Top-of-funnel investment (which channel to grow): first-touch on contact creation.

How to do it:

  • List the 3-5 budget/optimization decisions you actually make. Pick the model per decision, not per company.
  • Document which model each report uses. Most attribution wars are caused by different reports using different models without saying so.

Decision criteria:

  • If you have <300 conversions/month → use rules-based models, not ML/data-driven.
  • If you spend >20% of budget on un-clickable channels (podcast, OOH, brand video) → invest in MMM or incrementality tests.
  • If sales cycle >90 days → last-touch is dangerous; use W-shaped with CRM data.

Common gotcha: Picking a "best" model for the whole org. Different stakeholders need different models. The CFO wants channel ROI; the PPC manager wants last-click conversions. Both are right for their decisions.


Step 2: Build the UTM tracking architecture

UTMs are the foundation. Inconsistent UTMs = wrong attribution forever.

Standard UTM parameters:

ParameterPurposeConvention
utm_sourceWhere traffic came fromLowercase, no spaces (google, linkedin_paid, newsletter)
utm_mediumType of trafficCanonical values: cpc, email, social, organic, referral, display, affiliate, paid_social, podcast
utm_campaignCampaign nameNaming convention: [year]_[quarter]_[campaign]_[geo] e.g., 2026_q1_launch_us
utm_termKeyword (paid search only)Keyword being bid on
utm_contentAd/creative variantA/B test variant or creative ID

Naming convention rules:

  1. Lowercase only. google ≠ Google ≠ GOOGLE in analytics.
  2. No spaces. Use underscores or hyphens (spring_sale, never spring sale).
  3. Canonical source/medium picklist. Document the exhaustive list. Don't allow free-text from agencies or contractors.
  4. Campaign naming convention enforced. [year]_[q]_[name]_[geo]. Reject malformed UTMs at intake.
  5. Self-attribution survey for highest-value channels. "How did you hear about us?" form field captures the dark social and word-of-mouth UTMs miss.

Example URLs (standardized):

?utm_source=google&utm_medium=cpc&utm_campaign=2026_q1_launch_us&utm_term=project+management&utm_content=headline_a
?utm_source=newsletter&utm_medium=email&utm_campaign=2026_q1_jan_digest
?utm_source=podcast_marketing_school&utm_medium=podcast&utm_campaign=2026_q1_sponsor

UTM builders / governance:

  • Google Campaign URL Builder for ad-hoc — https://ga-dev-tools.google/campaign-url-builder/
  • Shared Google Sheet UTM template — every channel manager uses the same source. Validation rules block typos.
  • UTM intake form for paid teams — submits to the sheet, returns a clean URL.
  • Server-side validation in your CMS or analytics layer — reject pageviews with malformed UTMs (or normalize them).

How to do it:

  • Audit last 90 days of UTMs in GA4. List every distinct utm_source value. You'll find dozens — many are typos and case variants of the same source.
  • Map all to canonical values. Backfill GA4 with a "Channel Grouping" override using regex.
  • Publish the UTM convention doc. Get sign-off from anyone who creates campaigns.

Decision criteria:

  • If your utm_source list has >30 distinct values for paid alone → you have a hygiene problem, not a measurement problem.
  • If GA4 "(other)" channel grouping is >10% of traffic → your tagging has gaps.

Common gotcha: Forgetting to UTM-tag organic social posts and email links. The platform attributes them to "direct" or "referral," and you lose all visibility. Tag every link you control.


Step 3: Implement closed-loop CRM attribution (for B2B)

For B2B SaaS, web analytics tells you about contact-creation. The money is made at closed-won, which lives in the CRM. Closed-loop attribution stitches them together.

The flow:

  1. Visitor arrives via tagged link (UTMs captured).
  2. Anonymous session stored (GA4 client ID + your own first-party identifier in a cookie).
  3. Form submit / signup → identifier resolves to email → CRM contact created with UTMs as properties (Original Source, First Touch UTM Campaign, etc.).
  4. Contact attached to Account; subsequent touches logged with timestamp and UTMs.
  5. Opportunity created from contact; opportunity inherits first-touch and gets new last-touch.
  6. Opportunity closes-won → revenue stamped back against all touchpoints.

Required CRM fields:

FieldObjectCaptured atUse
Original Source (Source / Medium / Campaign)ContactFirst form fillFirst-touch attribution
Latest SourceContactEvery form fill (overwrites)Last-touch on contact
First Touch UTM (Campaign / Source / Medium)ContactFirst identified touchFirst-touch reporting
Opp First TouchOpportunityAt Opp creationFirst-touch on revenue
Opp Last TouchOpportunityLast touch before Opp closeLast-touch on revenue
All Touches (JSON or related list)Contact / AccountEvery touchMulti-touch attribution
Self-reported sourceContactForm free-textDark social fix

Tools that do this:

  • HubSpot: native "Source" field auto-captured. Marketing Hub Professional+ adds multi-touch attribution reports.
  • Salesforce: out-of-the-box weak; use a third-party (Bizible/Adobe Marketo Measure, Dreamdata, HockeyStack) or build with Pardot/Marketo.
  • Built in warehouse: Segment captures all touches → Snowflake/BigQuery → dbt models → Looker reports. Powerful but engineering-heavy.

How to do it:

  • Audit what UTMs and source data currently land in your CRM. Most B2B SaaS CRMs are missing 30-50% of touch data because form integrations strip UTMs.
  • Fix the form → CRM data flow first. Without it, every other attribution effort is broken.
  • Implement Last Touch and Original Source on contact. Then opportunity-level fields. Then full touch history.

Decision criteria:

  • If you have a dedicated revenue/marketing ops team and complex motion → third-party attribution tool (Dreamdata, HockeyStack, Bizible).
  • If you have <$10M ARR and a clean HubSpot → native HubSpot reporting is enough.
  • If you have data engineering capacity → build on warehouse for full control.

Common gotcha: "Last-touch direct" is the most common B2B attribution result and is almost always wrong. It means the user came back via a bookmark or typed URL after a long consideration — but the real driver was an earlier touch. Always pair last-touch with first-touch reporting; if the gap is large, you have an attribution gap.


Step 4: Tool-specific implementation

The best tool depends on your motion, scale, and budget.

HubSpot Attribution (Built-In, Best for B2B SaaS <$20M ARR)

What it tracks: contact and revenue attribution by source, medium, campaign, content.

Setup:

  1. Settings → Tracking & Analytics → Analytics Tools → enable "Track original source"
  2. Create custom contact properties for first-touch UTMs if not present
  3. Reports → Marketing → Attribution → Build multi-touch attribution report (Marketing Hub Pro+)

Strengths: native, easy, free if on HubSpot. Weakness: only sees HubSpot-tracked touches.

GA4 Attribution (Best for self-serve, web-conversion-driven)

Setup:

  1. Configure conversion events (signup, trial start, purchase)
  2. Admin → Attribution Settings → Data-driven attribution (default for new properties)
  3. Compare in Attribution → Model comparison report

Strengths: free, data-driven model with ML. Weakness: doesn't see CRM/sales-cycle data; limited to web events.

Triple Whale / Northbeam (Best for D2C e-commerce)

What it tracks: multi-channel attribution for Shopify with platform-side and post-purchase survey integration.

  • Connect ad accounts, Shopify, Klaviyo
  • Auto-imports conversion data
  • Blends platform-reported and post-purchase-survey data

Dreamdata / HockeyStack / Bizible (Best for B2B SaaS multi-channel)

What it tracks: full B2B customer journey from anonymous visit to closed-won revenue, stitched across web + CRM + ad platforms.

  • Install pixel + connect CRM (Salesforce/HubSpot)
  • Connect ad accounts (Google, LinkedIn, Meta)
  • Stitches anonymous → identified → opportunity → revenue
  • Multi-touch models (W-shaped, time-decay, custom)

Pricing: ~$1k-$10k/mo. Worth it when ad spend >$30k/mo.

Rockerbox (Best for hybrid B2B + brand spend)

Adds MMM-style measurement for un-clickable channels (TV, podcast, billboards).

  • Pixel + CRM + ad accounts
  • Multi-touch + MMM hybrid
  • Best when you have $50k+/mo brand spend

How to do it:

  • Inventory current tools.
  • Pick by motion + budget (see decision criteria below).
  • Run side-by-side for 30-60 days to validate before retiring legacy reports.

Decision criteria:

  • B2B SaaS <$10M ARR + simple stack → HubSpot native
  • B2B SaaS $10M-$50M ARR + multi-channel → Dreamdata or HockeyStack
  • D2C e-commerce → Triple Whale or Northbeam
  • Heavy brand spend → Rockerbox or in-house MMM

Common gotcha: Buying an attribution tool before fixing UTM hygiene. Tools amplify your data; if your data is dirty, they give you dirty answers faster.


Step 5: Reconcile attribution discrepancies

Different sources will report different numbers. This is normal. The job is to know why and pick a source of truth.

Example you'll see:

  • Google Ads: 50 conversions
  • GA4: 45 conversions
  • HubSpot CRM: 40 conversions
  • Stripe billing: 38 paid conversions

Why the discrepancies:

ReasonExplanationFix
Cookie blockingiOS Safari (ITP) and Firefox block third-party cookies by default; ~25% of conversions lost in platform pixelsServer-side conversion APIs (Google's Enhanced Conversions, Meta's Conversions API). Accept 10-20% gap.
Attribution windows differGoogle Ads default 30d click + 1d view; GA4 default 90d; HubSpot uses lifetimeDocument each tool's window. Align where possible.
Conversion definitions differGoogle tracks "conversions" (any event marked); GA4 tracks "conversions" (any event marked); HubSpot tracks form fills; Stripe tracks paidDefine a canonical "conversion" — usually closed-won in CRM for B2B, paid in Stripe for self-serve.
View-through vs. click-throughGoogle and Meta count view-through (impression then later conversion); GA4 doesn'tDisable view-through in platform reports for ROAS calculations, or report both separately.
Time zone differencesGoogle PST, GA4 your TZ, Stripe UTCSet all tools to same TZ.
DeduplicationUser clicks Google ad, then organic, then converts — counted in bothUse one tool to deduplicate (server-side conversion API + clean source-of-truth).
Bot trafficPlatforms filter differentlyFilter in GA4 (Admin → Data Filters → Internal/Bot).

Pick ONE source of truth per metric:

MetricSource of truthRationale
Closed-won revenue by channel (B2B)CRM with multi-touch attributionOnly system that sees the deal close + the journey
Self-serve paid conversionsStripe + GA4 with server-side conversion APIStripe = money truth; GA4 attributes the visit
Platform ad ROAS (for bid optimization)Platform-native (Google Ads, Meta)Platforms optimize against their own data
Channel mix for budget allocationCRM closed-loop, with cross-checks vs. GA4 first-touchReconciles platform inflation

How to do it:

  • Build a reconciliation table monthly: pull all four sources, document the gaps, explain each one.
  • Communicate the source-of-truth hierarchy clearly. "When CFO asks revenue attribution, we use CRM. When PPC team optimizes bids, they use Google Ads."

Decision criteria:

  • If discrepancies exceed 30% → fix tracking before trusting any number.
  • If discrepancies are 10-20% → normal post-iOS-14 environment; live with it.

Common gotcha: Picking one tool's number and assuming it's truth. Every tool has biases. Always have at least one cross-check before making a budget decision.


Step 6: Run incrementality tests to validate

Attribution models tell you correlation. Only experiments tell you causation. For your largest channels, run incrementality tests at least annually.

Common designs:

  • Geo holdout — turn off a channel in 1-2 matched geo markets for 4-8 weeks; compare conversions in test vs. holdout.
  • Audience holdout — exclude 10% of audience from a channel (e.g., paid retargeting); compare conversion rate.
  • Time-based — pause channel for 2-4 weeks, compare conversions to forecast.
  • Conversion lift — built-in tools from Meta, Google, LinkedIn that hold out an audience and compare.

When to run them:

  • Before re-investing in a "high-ROAS" channel that might be cannibalizing organic.
  • When platform-reported ROAS contradicts CRM data.
  • Before doubling brand spend (podcasts, OOH).

How to do it:

  • Pre-register hypothesis and minimum detectable effect.
  • Run 4-8 weeks for statistical power.
  • Calculate incremental ARR per dollar spent (not platform-reported ROAS).
  • Document and share results — most teams skip the share, and the same channel debate repeats next quarter.

Decision criteria:

  • Channels with >$10k/mo spend → annual incrementality test.
  • Channels with >$50k/mo spend → quarterly.

Common gotcha: Treating platform-reported "incrementality" tools as ground truth. They're better than nothing, but the platform has an interest in showing their ads are incremental. Validate with at least one geo holdout per year for major channels.


Step 7: Build the attribution dashboard and reporting cadence

The output of attribution is not a report — it's better budget decisions. Build dashboards that drive decisions.

Core views:

  1. Channel ROI — by channel: spend, contacts, MQLs, SQLs, closed-won revenue, CAC, LTV/CAC ratio. Multiple attribution models (first / last / W-shaped) shown side-by-side.
  2. Campaign performance — drilldown to specific campaigns, with cost per stage.
  3. Funnel cohort — Jan MQL cohort → how many converted by month 3, 6, 12?
  4. Path analysis — most common multi-touch paths to closed-won.
  5. Self-reported "How did you hear about us" — captures dark social.

Reporting cadence:

  • Weekly: Channel spend vs. plan, new pipeline created by channel, MQL→SQL conversion by source.
  • Monthly: Full multi-touch revenue attribution, CAC payback by channel, model reconciliation.
  • Quarterly: Channel ROI deep dive, incrementality test results, budget reallocation.

How to do it:

  • Build in CRM-native first (HubSpot Reports). Graduate to BI (Looker, Mode, Metabase) when needing cross-source joins.
  • Each dashboard explicit about its attribution model.
  • Each dashboard owned by one person.

Common gotcha: Reports without action. If nobody changes budget based on the report, kill it.


Output Format

# Attribution Program — {{Company Name}}

**Date:** {{date}}
**Owner:** {{owner}}
**Status:** Draft / In Review / Approved

---

## 1. Decisions This Attribution Informs

1. {{Decision 1 — e.g., "Quarterly channel budget allocation"}}
2. {{Decision 2 — e.g., "PPC bid optimization"}}
3. {{Decision 3 — e.g., "Should we sponsor podcast X"}}

## 2. Models Selected (by decision)

| Decision | Model | Rationale |
|---|---|---|
| {{decision}} | {{model}} | {{why}} |

## 3. UTM Architecture

**Canonical source list:** {{list}}
**Canonical medium list:** {{list}}
**Campaign naming convention:** {{format}}
**Governance:** {{how managed}}

## 4. CRM Closed-Loop Setup

**Required fields:** {{list}}
**Form → CRM data flow:** {{description}}
**Source of truth for revenue attribution:** {{system}}

## 5. Tool Stack

| Tool | Role | Source of truth for |
|---|---|---|
| {{tool}} | {{role}} | {{metric}} |

## 6. Reconciliation Approach

**Source-of-truth hierarchy:** {{ordered list}}
**Acceptable discrepancy range:** {{e.g., 10-20% between GA4 and platforms}}

## 7. Incrementality Test Plan

| Channel | Test design | Frequency |
|---|---|---|
| {{channel}} | {{design}} | {{frequency}} |

## 8. Dashboards & Reporting Cadence

| Report | Cadence | Audience | Owner |
|---|---|---|---|
| {{report}} | {{weekly/monthly}} | {{audience}} | {{owner}} |

## Next Steps

- [ ] UTM audit + standardization — {{owner}}, {{date}}
- [ ] Form → CRM data flow audit + fix — {{owner}}, {{date}}
- [ ] Tool implementation — {{owner}}, {{date}}
- [ ] Build dashboards — {{owner}}, {{date}}
- [ ] Schedule monthly attribution review — {{cadence}}

Quality Bar

An attribution program is "done" when:

  • At least 3 specific decisions are named that the attribution will inform
  • Each decision has a named model with documented rationale
  • UTM naming convention is documented and enforced (canonical source/medium picklists)
  • CRM has required fields for first-touch, last-touch, and (for B2B) multi-touch
  • Form → CRM UTM data flow validated end-to-end (no UTMs lost in form integrations)
  • Source-of-truth hierarchy explicit for each metric
  • Reconciliation methodology documented (why does Google Ads say X and CRM say Y)
  • At least one annual incrementality test planned for top channels
  • Dashboards have explicit model labels (no ambiguity over "what attribution is this?")
  • Self-reported source field on forms (catches dark social)
  • Cross-referenced with cm-context ICP and revops lifecycle definitions

Common Mistakes

  1. Picking one model for all decisions — Marketing forces last-touch on every report; brand-team's podcast investment looks worthless. Why it happens: "Pick a model and stick to it" sounds principled. Fix: Model per decision, not per company. Document which model each report uses. Last-touch for PPC bids; W-shaped for revenue attribution; MMM for brand.
  2. Trusting platform-reported numbers as truth — Google Ads says 80 conversions; CRM shows 40. Marketing reports 80, CFO calls them on it. Why it happens: Platforms have incentive to over-attribute (view-through, longer windows, last-click); their numbers are upper bounds, not truth. Fix: CRM closed-loop is truth for B2B revenue; Stripe is truth for paid conversions. Platforms are bid-optimization signals, not reporting truth.
  3. Inconsistent UTM tagging — LinkedIn, linkedin, Linked In, li_paid all appear as separate sources in GA4. Why it happens: No governance; agencies and channel managers use their own conventions. Fix: Canonical picklist for utm_source and utm_medium. Validation at intake (UTM builder form). Backfill clean values in GA4 using channel grouping overrides.
  4. No closed-loop attribution in B2B — Web analytics shows traffic; CRM shows revenue; no connection between them. Why it happens: Form integrations strip UTMs; marketing team doesn't talk to RevOps. Fix: Audit the form → CRM data flow end-to-end with a test submission. Add original-source and first-touch UTM fields on contact. Use third-party attribution tool (Dreamdata, HockeyStack, Bizible) if scale justifies.
  5. Ignoring dark social — Word-of-mouth, Slack DMs, private community shares show up as "direct" or "(none)" in analytics. Why it happens: Can't tag what you don't control. Fix: Add "How did you hear about us?" free-text or dropdown field on signup/demo forms. Cross-reference results vs. UTMs — gap is your dark-social channel.
  6. No incrementality testing on big channels — Doubling down on a channel with "great" last-touch ROAS, only to find it was just retargeting people who would have converted anyway. Why it happens: Tests are operationally annoying. Fix: Geo holdout or audience holdout on top 1-2 channels annually. Pre-register hypothesis. The discomfort of running the test is much smaller than the cost of mis-allocating budget for a year.
  7. Different teams using different attribution models without saying so — Marketing reports "LinkedIn drove $500k in pipeline." Finance reports "LinkedIn drove $80k." Both numbers are right under their model; the conflict is unresolved. Why it happens: No org-wide governance of attribution models. Fix: RevOps owns model governance. Every report labels its attribution model. Quarterly cross-team review reconciles differences.
  8. Multi-touch with too few conversions — Trying to run W-shaped attribution on 50 conversions a month; results are statistical noise. Why it happens: Sophistication theater. Fix: Multi-touch requires volume. Below 300 conversions/month, rules-based first/last with directional multi-touch reporting is more honest than ML or W-shaped on tiny samples.
  9. Buying an attribution tool before fixing tracking hygiene — $5k/mo on Dreamdata, but UTMs are still inconsistent and forms strip source data. Why it happens: "If we just had the right tool…" Fix: Fix UTM hygiene + CRM data flow first. Only then evaluate tools; otherwise the tool gives you wrong answers more efficiently.

Examples

Example 1: B2B SaaS with growing paid spend and a CFO who doesn't trust the numbers

Context:

  • Company: Stacklane, $18M ARR B2B SaaS, paid spend growing from $40k → $200k/mo
  • Sales motion: hybrid PLG + sales-led
  • Current state: Marketing reports Google + LinkedIn drove "$3M in pipeline" using last-touch in HubSpot; CFO challenges the number because Stripe shows only $800k of that as closed
  • Goal: Establish defensible attribution for next-year planning ($2M marketing budget)
  • Constraint: 1 marketing-ops person, no data team

Input from user:

"Our CFO doesn't trust our attribution. We're about to make a $2M budget allocation and finance wants real numbers. We have HubSpot, Google Ads, LinkedIn Ads, GA4, and Stripe. We don't know if we should buy a tool or fix what we have."

Output (abbreviated):

### Decisions this attribution informs
1. 2026 channel budget allocation ($2M)
2. PPC bid optimization (in-channel)
3. Sales-team conviction in inbound quality

### Models per decision
- Budget allocation → W-shaped multi-touch from CRM closed-loop
- PPC bid → platform-native last-click (for bid algorithms to work)
- Sales conviction → first-touch + opportunity touch sequence in CRM

### UTM governance fixes (Phase 1, weeks 1-3)
- Audit revealed 47 distinct utm_source values; 18 are typos/case-variants of 9 canonical sources
- Canonical picklist: google, linkedin, meta, bing, newsletter, partner_[name], webinar, podcast_[name], direct, referral
- Standardized medium list: cpc, paid_social, organic, organic_social, email, referral, podcast
- Campaign convention: 2026_q[N]_[name]_[geo]
- UTM intake Google Sheet + validation rules

### CRM (HubSpot) fixes (Phase 1, weeks 1-3)
- Form → HubSpot UTM passthrough validated (was broken for 2 of 5 forms; ~30% of touches missing source)
- Added: Opp First Touch, Opp Last Touch, All Touches (JSON), Self-Reported Source on contact
- Set up Original Source + First Touch UTM as required hidden fields on all forms

### Tool decision
- HubSpot native attribution is sufficient for Phase 1 ($18M ARR scale, one channel cluster)
- Re-evaluate at $30M ARR or if cross-platform stitching becomes the bottleneck
- Skip Dreamdata/Bizible for now; revisit Q3

### Reconciliation hierarchy
- Closed-won revenue attribution → HubSpot W-shaped (source of truth for budget)
- Paid conversion attribution → GA4 + server-side conversion API to Google/Meta (for bid optimization only, NOT for revenue reporting)
- Stripe = revenue truth; HubSpot must match Stripe within 5% (validated monthly)

### Incrementality plan
- Q1: Geo holdout test on LinkedIn Ads (top 2 spend states off for 6 weeks)
- Q2: Conversion lift on Meta retargeting (suspect of cannibalization)
- Q3: Audience holdout on Google Ads brand keywords (likely high cannibalization with organic)

### Dashboards (built in HubSpot, supplemented by GA4)
1. Weekly: Channel pipeline created (W-shaped, last 7 days)
2. Monthly: Channel revenue attribution (W-shaped vs. first vs. last), CAC, LTV/CAC
3. Quarterly: Full deep-dive + incrementality test results

Why this works: Diagnosed the real issue (broken UTM hygiene + form→CRM data flow) before recommending a tool. Picked HubSpot W-shaped native because scale didn't justify a $5k/mo tool yet. Built in the brand-keyword incrementality test that would explain a major chunk of the CFO's gap.


Example 2: D2C subscription brand on iOS 14 measurement collapse

Context:

  • Company: Folio Coffee, $3M ARR D2C subscription coffee, 70% Meta ads dependence
  • Problem: iOS 14 has crushed Meta-reported ROAS visibility; team can't tell which campaigns work
  • Goal: Restore measurement confidence + identify whether to diversify channel mix
  • Constraint: $80k/mo paid spend, no in-house data team, Shopify + Klaviyo

Input from user:

"Meta says our ROAS is 1.2x; our books say we're profitable. We don't know which campaigns are actually working. Should we keep spending? Where else should we go?"

Output (abbreviated):

### Decisions this attribution informs
1. Daily Meta campaign optimization
2. Channel diversification decision (Meta vs. Google vs. TikTok vs. email)
3. Blended ROAS visibility for CFO

### Models per decision
- Daily Meta optimization → server-side CAPI + Meta-reported (last-click, accept it's directional)
- Channel diversification → blended ROAS via Triple Whale (multi-touch) + post-purchase survey
- Blended CFO view → MMM-lite (regression of weekly spend vs. revenue across channels)

### Implementation steps
1. Triple Whale install (1 week)
   - Connects Shopify + Meta + Google + Klaviyo
   - Auto-imports orders, blends multi-channel attribution
2. Post-purchase survey via Triple Whale or Fairing
   - "How did you hear about us?" — captures word-of-mouth and the 30% Meta misses post-iOS-14
3. Meta CAPI server-side conversion tracking
   - Sends order events server-side, recovers ~30% of conversions that iOS 14 cookie blocking lost
4. Klaviyo email attribution alongside paid (don't let Meta steal email-driven conversions)

### Reconciliation hierarchy
- Revenue truth = Shopify (post-tax, post-refund)
- Channel attribution truth = Triple Whale blended ROAS + post-purchase survey reconciliation
- Meta-reported ROAS = optimization signal only, NOT business reality

### MMM-lite for diversification decision
- Weekly spend by channel + weekly revenue → simple linear regression in Sheets/Python
- Estimate marginal ROAS per channel
- Validate against post-purchase survey
- Output: should we shift $20k/mo from Meta to TikTok? (test 4-week diversification, measure)

### Dashboards (Triple Whale built-in)
- Daily: Meta + Google ROAS, blended ROAS, post-purchase survey breakdown
- Weekly: Channel contribution to revenue
- Monthly: MMM-lite output, CAC payback, LTV/CAC by acquisition channel

Why this works: iOS 14 is a measurement problem, not just a tracking problem. The fix is layered: server-side CAPI restores 30% of lost tracking; Triple Whale stitches multi-channel; post-purchase survey catches dark social; MMM-lite informs strategic channel mix. None of these is sufficient alone.


Related Skills

  • analytics-tracking — Use before this skill. Attribution depends on conversion tracking; if pixels aren't firing right, attribution is wrong.
  • revops — Use alongside this skill for B2B. Attribution requires clean lifecycle stages and source-of-truth definitions; RevOps defines them.
  • ab-test-setup — Use alongside for incrementality testing. Geo and audience holdouts are A/B tests at the channel level.
  • paid-ads — Use after this skill. Attribution outputs (which channel has best CAC) inform paid-ads budget decisions.
  • channel-strategy — Use with this skill at planning. Attribution informs which channels to grow, channel-strategy informs which to enter.
  • marketing-automation — Use alongside this skill. Marketing automation tools (HubSpot, Marketo) often hold the closed-loop attribution data.

References

  • Avinash Kaushik — Web Analytics 2.0 (foundational model thinking)
  • Google's "Attribution 360" docs and GA4 Data-Driven Attribution methodology
  • Meta's Conversions API documentation (post-iOS-14 server-side tracking)
  • Marketing Mix Modeling (Robyn — Meta's open-source MMM library; Lightweight MMM — Google's)
  • HockeyStack, Dreamdata, Bizible/Adobe Marketo Measure documentation on B2B closed-loop
  • Triple Whale, Northbeam, Rockerbox docs on e-commerce multi-channel
  • Andrew Chen — The Cold Start Problem (channel saturation and incrementality)
  • ProfitWell / Paddle research on subscription LTV attribution

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.