‹ 首页

domain-marketing

@signalpilot-labs · 收录于 5 天前 · 上游提交 6 天前

Marketing domain knowledge: attribution models, engagement funnel order.

适合你,如果你需要掌握营销归因和漏斗分析知识。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add signalpilot-labs/signalpilot/domain-marketing
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- signalpilot-labs/signalpilot/domain-marketing
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify signalpilot-labs/signalpilot/domain-marketing
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
473GitHub stars
~562上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 436a4c4 · 表述以原文为准
它做什么

处理营销数据时,会按驱动表规则从事件表聚合,正确应用首次/末次/线性/40-20-40归因模型,遵循发送→送达→打开→点击→退信顺序,并根据数据源数量处理花费字段的正负号。

什么时候触发

当询问营销数据、归因分析、互动漏斗或花费计算时触发。

装好后可以这样说
得到每个渠道的转化贡献。
按发送、送达、打开、点击、退信统计。
避免因正负号不同导致错误合计。
技能原文 SKILL.md作者撰写 · Apache-2.0 · 436a4c4

Marketing Domain Knowledge

Driving Table

When aggregating engagement or spend metrics, drive FROM the event/activity table (messages, clicks, impressions), not the dimension table (contacts, accounts, campaigns). Contacts with zero engagements MUST NOT appear in engagement reports - they have no data to aggregate.

Exception - reports that JOIN two aggregations by a shared dimension: When a report groups metrics from multiple sources BY the same dimension (e.g., cost-per-acquisition by channel), the source with the MOST distinct values of that dimension defines the output population - INNER JOIN would silently drop dimension values that exist in one source but not the other. LEFT JOIN the smaller source onto the larger one. Dimension values without matching data in the smaller source get NULL metrics.

Attribution Models

Attribution models split conversion credit across touchpoints. Implement the model the task or YML description specifies:

  • First-touch: 100% credit to the first touchpoint
  • Last-touch: 100% credit to the last touchpoint
  • Linear: equal share (1 / count of touches per conversion)
  • 40-20-40: 40% first, 40% last, 20% split equally among middle touches

When a conversion has only one touchpoint, first-touch and last-touch are the same row - do NOT double-count credit.

Engagement Funnel Order

Standard funnel: sent → delivered → opened → clicked → bounced. Each stage is a COUNT of events, not COUNT DISTINCT of recipients.

Do NOT deduplicate across funnel stages - one email opened 3 times is 3 open events.

Spend and Cost Sign Convention

Many API connectors (messaging, ads, telephony) store costs as negative values (representing money leaving the account). Before writing SUM(price) into a metric column, query SELECT MIN(price), MAX(price) on EACH source table that contributes monetary values.

Single-source model: If the model reads monetary values from ONE source only, preserve that source's sign convention. Do NOT apply ABS() - the raw sign is the source of truth.

Multi-source model: If the model JOINs multiple tables that contain monetary columns, check the sign of EACH monetary source with SELECT MIN(price), MAX(price). If any two sources use different sign conventions, normalize ALL monetary columns in the model to positive with ABS() - including columns that come from a single CTE. Mixing positive and negative conventions within one model produces misleading totals and breaks comparisons between columns.

按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。