5 月新增商家在 5 月的 CP 收入

chensu · 2026-05-25 · 数据底座 soar_dw.dwd_trd_user_orders_di

统计逻辑

看「2026-05-01 ~ 2026-05-25 期间新增的 (domain, aff_id, country) 三元组」在 5 月给 CP 业务带来的 commission。 口径四要素:bu='CP'(排除 CPM/GCB/LB)、click_type ≠ 'AD_Vio'(排除违规)、 country JOIN with GLOBAL 通配(GLOBAL 三元组匹配任意 user_country,非 GLOBAL 精确匹配)、 反污染(订单 create_date ≥ 三元组首次入库时间)。

SQL

WITH new_triplets AS (
    SELECT LOWER(domain) AS domain, aff_id, country,
           MIN(created_at) AS aff_created_at
    FROM v_dim_pub_store_aff_country_df
    WHERE aff_id > 0
    GROUP BY LOWER(domain), aff_id, country
    HAVING MIN(created_at) >= '2026-05-01'
       AND MIN(created_at) <  '2026-05-26'
)
SELECT
    COUNT(DISTINCT CONCAT(t.domain,'|',CAST(t.aff_id AS VARCHAR),'|',t.country)) AS triplets_with_orders,
    COUNT(DISTINCT o.id) AS orders,
    ROUND(SUM(o.commission), 2) AS commission
FROM new_triplets t
JOIN soar_dw.dwd_trd_user_orders_di o
    ON LOWER(o.root_domain) = t.domain
    AND o.aff_id = t.aff_id
    AND (t.country = 'GLOBAL' OR o.user_country = t.country)   -- country JOIN
    AND o.create_date >= DATE(t.aff_created_at)                  -- 反污染
WHERE o.bu = 'CP' AND o.click_type != 'AD_Vio'
  AND o.create_date >= '2026-05-01' AND o.create_date < '2026-05-26';

结果

新增三元组分母
2,005
5 月新增 (domain, aff_id, country)
有单三元组
146 / 7.3%
命中率
5 月订单数
1,037
5 月 commission
$7,466
GMV $100,508

TOP 3 Domain 日度收入

froyaorganics.com · 5-13 接入 aff 3609 / GLOBAL,5-18 补增 US;首单 5-14;5-25 单日峰值 $1,035
norseorganics.co · 5-13 接入 aff 3609 / GLOBAL;首单 5-14;走势跟 froya 同步
wallshoppe.com · 5-06 接入 aff 2590 + 3505 / GLOBAL;首单 5-08(2 天后);只跑出 2 笔大单后沉默
虚线 = 联盟接入日

TOP 3 小结

Domain 联盟接入 首单 5 月 commission 订单数
froyaorganics.com 5-13 aff 3609 GLOBAL
5-18 补 US
5-14(+1 天) $3,747 138
norseorganics.co 5-13 aff 3609 GLOBAL 5-14(+1 天) $913 16
wallshoppe.com 5-06 aff 2590 + 3505 GLOBAL 5-08(+2 天) $383 2