marketing-attribution
Deterministic attribution toolkit — MMM, MTA, incrementality testing, method-selection matrix, formulas, decision tree, common pitfalls.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Deterministic attribution toolkit — MMM, MTA, incrementality testing, method-selection matrix, formulas, decision tree, common pitfalls.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Five named aesthetic bundles (Ethereal Glass, Editorial Luxury, Soft Structuralism, Minimalist Editorial, Industrial Brutalist) with surface / typography / motion / texture specs and a profile-to-archetype decision matrix.
Canonical CreativeBrief markdown + JSON schema, aligned 1:1 with Hydra CreativeBrief envelope. Sections cover vision, references, aesthetic, technical approach, key shots/messages, production, guardrails, approvals.
HITL gate catalog, audit-log shape, DecisionRecord schema, three-lines-of-defense mapping, v1 gate IDs (brand-consistency, regulated-claims-review, budget-cap, attribution-soundness, ip-clearance).
Audience segmentation toolkit — RFM, behavioral cohorts, JTBD, ICP for B2B, CDP/CRM integration patterns, persona archetype templates.
Brand safety and regulated-claims rulebook — toxicity/bias categories, FDA/FTC/FCA/GDPR rules, prohibited-content registry, brand-guideline enforcement, HITL escalation matrix, verdict schema.
Six industry-specific campaign playbooks — funnel stages, KPI targets, channel mix, cadence, critical gates, failure modes, blueprint examples.
| name | marketing-attribution |
| description | Deterministic attribution toolkit — MMM, MTA, incrementality testing, method-selection matrix, formulas, decision tree, common pitfalls. |
| user-invocable | true |
| allowed-tools | ["Read","Glob","Grep","Write"] |
Used by analytics-experimentation and media-buyer-bidder to quantify channel contribution to outcome. Three families: MMM (top-down, channel-level, long-horizon), MTA (bottom-up, touchpoint-level, short-horizon), Incrementality (causal, gold-standard, narrow).
Apply the Hardcoding Directive: every attribution claim in a DecisionRecord must cite method, time-window, data window, and confidence interval. No "the campaign drove $X" without method declared.
Estimate channel-level contribution to a KPI (revenue, leads, brand search) over a multi-week / multi-quarter window. Robust to cookie deprecation, signal loss, walled-garden opacity.
KPI_t = baseline_t
+ Sigma_c [ beta_c * Adstock(saturate(spend_c,t)) ]
+ Sigma_x [ gamma_x * control_x,t ]
+ epsilon_t
Components:
| Term | Meaning | Typical functional form |
|---|---|---|
| baseline_t | Trend + seasonality | Fourier seasonality + trend |
| Adstock(x) | Carryover / decay | Geometric: x_t + lambda * Adstock_{t-1}, lambda in [0,1] |
| saturate(x) | Diminishing returns | Hill: x^alpha / (k^alpha + x^alpha), or log(1+x) |
| beta_c | Channel coefficient | Estimated, must be >=0 (constrain) |
| control_x | Exogenous (price, promo, weather, holiday) | Linear |
| Method | When |
|---|---|
| OLS with positivity constraints | Small data, fast prototyping |
| Ridge regression | Multicollinear channels (TV + OOH + YouTube) |
| Bayesian (PyMC-Marketing, Meridian, Robyn) | When priors are informative and uncertainty matters for budget decisions |
Bayesian is preferred for any budget decision >= $1M. Priors should come from prior MMM runs, meta-analysis, or experiment-calibrated benchmarks.
Allocate credit across digital touchpoints in a user's path-to-conversion. Operates on user-level event log.
| Model | Credit allocation | When sensible |
|---|---|---|
| First-touch | 100% to first touch | Brand discovery emphasis |
| Last-touch | 100% to last touch | Closing-channel emphasis (default in many ad platforms) |
| Linear | Equal split across N touches | Naive, but unbiased between channels |
| Time-decay | Weight = exp(-(T - t) / half_life) | Late-funnel-weighted |
| Position-based (U-shape) | 40% first + 40% last + 20% middle | Funnel-aware compromise |
Rows: channel type. Columns: data-availability tier.
| Channel | Rich first-party data | Limited 1P, walled-garden | Offline / no tracking |
|---|---|---|---|
| Paid social | MTA + Ghost-Ad incrementality | Geo holdout | MMM only |
| Paid search | MTA (data-driven) + brand-search lift test | MTA rule-based | MMM |
| Display / programmatic | MTA + Ghost-Ad | Geo holdout | MMM |
| Email / SMS | MTA (direct attribution) | Hold-out cohorts | n/a |
| Influencer | UTM + promo-code + matched-market | Promo-code only | MMM |
| TV / OOH | Geo lift + MMM | Geo lift | MMM |
| Audio (podcast, radio) | Promo-code + geo lift | Promo-code | MMM |
| Organic / SEO | Last-non-direct MTA + brand search trend | MTA | n/a |
| PR / earned | MMM + brand search lift | MMM | MMM |
Q1: Is the budget decision worth >= $250k or >= 5% of total media?
YES -> Q2
NO -> Use platform-default MTA (last-touch / data-driven)
Q2: Is the channel digital with platform measurement?
YES -> Q3
NO -> MMM (with geo-lift calibration if budget allows)
Q3: Can we run a holdout >= 2 weeks?
YES -> Run incrementality test, calibrate MTA with result
NO -> Data-driven MTA + sensitivity check vs MMM
Every attribution claim in a MarketBliss artifact must include:
mmm | mta_rule | mta_dd | incrementality_geo | incrementality_ghostaudience-segmentation (cohort definitions feed MTA)media-mix-modeling (downstream consumer of MMM output)experimentation-design (incrementality test design specifics)