一键导入
attribution-modeling
Understand which marketing channels drive purchases by implementing multi-touch attribution models across UTM-tracked campaigns and channels
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Understand which marketing channels drive purchases by implementing multi-touch attribution models across UTM-tracked campaigns and channels
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Manage supplier invoices and vendor payments with automated receipt matching, payment scheduling, early discount optimization, and reconciliation workflows
Enable wholesale and B2B sales with company accounts, custom catalogs, quote workflows, purchase orders, and net payment terms
Predict future inventory needs using historical sales data, seasonal trends, and reorder points to prevent stockouts and overstock
Launch a multi-vendor marketplace with seller onboarding, commission rules, automated payouts via Stripe Connect, and vendor dashboards
Control which products appear first in collections using automated ranking rules, manual overrides, and performance-based sorting algorithms
Sync your catalog and inventory across your own site, Amazon, eBay, and wholesale channels to sell everywhere from one system
| name | attribution-modeling |
| description | Understand which marketing channels drive purchases by implementing multi-touch attribution models across UTM-tracked campaigns and channels |
| category | data-analytics |
| risk | safe |
| source | curated |
| date_added | 2026-03-12 |
| tags | ["attribution","multi-touch","marketing-analytics","utm","last-click","first-click","data-driven","channel-analysis"] |
| triggers | ["attribution modeling","multi-touch attribution","marketing attribution","channel attribution","first touch vs last touch","data-driven attribution","marketing spend optimization","UTM attribution"] |
| tools | ["claude-code","cursor","gemini-cli","copilot","codex-cli","kiro","opencode"] |
| platforms | ["shopify","woocommerce","bigcommerce","custom"] |
| difficulty | advanced |
Attribution modeling determines which marketing touchpoints receive credit for a conversion, enabling informed decisions about where to allocate ad spend. Every ad platform (Meta, Google, TikTok) reports attribution using its own model — typically claiming 100% credit — which means the sum of all platform-reported revenue routinely exceeds your actual revenue.
This skill guides you through setting up first-party attribution on your platform, comparing attribution models side by side, and using dedicated attribution tools that do this automatically without building custom pipelines.
| Platform | Recommended Tool | Why |
|---|---|---|
| Shopify | Triple Whale or Northbeam | Both built specifically for Shopify DTC brands; pull order data via API, de-duplicate cross-platform attribution, and show first-party blended ROAS |
| Shopify (budget) | Shopify Analytics built-in attribution + UTM tracking | Free; shows last-click attribution by UTM source for all orders |
| WooCommerce | Metorik + GA4 attribution | Metorik adds UTM tracking to WooCommerce orders; GA4 provides data-driven attribution model |
| BigCommerce | Rockerbox or Northbeam | Both support BigCommerce via API integration; provide multi-touch attribution dashboards |
| All platforms (mid-market) | Rockerbox or Affluent | Platform-agnostic; pull ad spend from all channels and match to first-party order data |
| Custom / Headless | Build on Segment + dbt or use Triple Whale's pixel API | Capture touchpoints with Segment, store in warehouse, model attribution in dbt |
Good attribution starts with consistent UTM parameters. Without them, 40–60% of traffic appears as "direct" (dark traffic).
UTM naming conventions to enforce across your team:
| Parameter | Example | Rule |
|---|---|---|
utm_source | google, meta, klaviyo | Always lowercase; never Google or GOOGLE |
utm_medium | cpc, email, social | Standardized list; no custom variants |
utm_campaign | spring-sale-2026 | Consistent format across platforms |
Platform-specific setup:
gclid automatically); also add UTM parameters under Campaign → Settings → Additional settings → Campaign URL optionsOption A: Built-in Shopify Analytics (last-click, free)
Option B: Triple Whale (recommended for DTC brands spending $50K+/mo on ads)
Option C: Polar Analytics (mid-market, more affordable)
Using Metorik + GA4
Alternative: WooCommerce Google Analytics plugin (free)
For headless storefronts, capture touchpoints server-side and store them with orders. Then model attribution in a data warehouse:
Step 1 — Capture UTM touchpoints on every visit:
// Client-side: capture and store UTM params in localStorage on every page load
function captureUTMTouchpoint() {
const params = new URLSearchParams(window.location.search);
if (!params.get('utm_source') && !params.get('gclid') && !params.get('fbclid')) return;
const touchpoints = JSON.parse(localStorage.getItem('utm_touchpoints') || '[]');
touchpoints.push({
source: params.get('utm_source') ?? inferSource(document.referrer),
medium: params.get('utm_medium') ?? 'organic',
campaign: params.get('utm_campaign') ?? '(none)',
touchedAt: new Date().toISOString(),
landingPage: window.location.pathname,
});
// Keep last 10 touchpoints (30-day look-back)
localStorage.setItem('utm_touchpoints', JSON.stringify(touchpoints.slice(-10)));
}
Step 2 — Attach touchpoints to the order at checkout:
// Send stored touchpoints with the order creation request
const touchpoints = JSON.parse(localStorage.getItem('utm_touchpoints') || '[]');
await createOrder({ ...orderData, marketingTouchpoints: touchpoints });
Step 3 — Store and model attribution in your data warehouse:
Export to BigQuery or Snowflake via Fivetran or Stitch, then build attribution models in dbt. Use a dbt package like dbt-attribution or write your own last-click, linear, and time-decay models against your orders + touchpoints tables.
Run these comparisons monthly to guide budget decisions:
| What to compare | How to interpret |
|---|---|
| Platform ROAS vs. first-party ROAS | If platform ROAS is 5x but first-party is 2x, the channel is getting over-credited from view-through attribution |
| Last-click vs. linear (all-touch) | Channels that appear stronger under linear are likely assisting conversions that get credited elsewhere under last-click |
| First-touch vs. last-touch | First-touch shows which channels drive awareness; last-touch shows which channels close sales |
Rule of thumb: If Meta claims $200K in attributed revenue and Google claims $180K, but your total revenue was $250K, you have significant attribution overlap. Use a first-party tool (Triple Whale, Rockerbox) to de-duplicate and get a realistic picture.
utm_source=google and utm_source=Google are treated as different channels; enforce lowercase and a controlled vocabulary| Problem | Solution |
|---|---|
| Total platform-reported revenue exceeds actual revenue | This is expected — each platform claims 100% credit; use a first-party tool (Triple Whale, Rockerbox) to de-duplicate attribution |
| 40-60% of orders show as "direct" or "none" | UTM parameters are missing from campaign links; audit your UTM setup in each ad platform; add UTMs to email footers and bio links |
| UTM parameters stripped by redirect domains | Test your redirect URLs; some URL shorteners strip UTM params — use Google's URL builder and verify parameters survive |
| Attribution shows email with very low credit | Email often appears late in conversion paths under last-click because customers come back via direct; check first-click model to see email's role in awareness |
| iOS privacy changes reduced Meta attribution accuracy | Use Meta's Conversions API (CAPI) integration — Klaviyo and Triple Whale both support CAPI to send server-side conversion events back to Meta |