[仅限PaaS]{class="badge informative" title="仅适用于云项目(Adobe管理的PaaS基础架构)和内部部署项目上的Adobe Commerce 。"}

基本优惠券代码分析

了解业务的优惠券表现对于细分订单和更好地了解客户习惯是一种有趣的方式。

本主题记录创建此分析所需的步骤,以便了解获得优惠券的客户表现、查看趋势并跟踪单个优惠券代码的使用情况。

优惠券代码分析仪表板显示使用情况和性能量度

快速入门

首先,添加有关如何跟踪优惠券代码的注释。 如果客户将优惠券应用于订单,则会发生以下三种情况:

  • 折扣反映在base_grand_total金额(Commerce Intelligence中的Revenue指标)中
  • 优惠券代码存储在coupon_code字段中。 如果此字段为NULL(空),则该订单没有与其关联的优惠券。
  • 折扣金额存储在base_discount_amount中。 根据您的配置,此值可能显示为负值或正值。

从Commerce 2.4.7开始,客户可以向订单应用多个优惠券代码。 在本例中:

  • 应用的所有优惠券代码都存储在coupon_codesales_order_coupons字段中。 应用的第一个优惠券代码也存储在coupon_codesales_order字段中。 如果此字段为NULL(空),则该订单没有与其关联的优惠券。

构建量度

第一步是通过以下步骤构建新量度:

  • 导航到​ Manage Data > Metrics > Create New Metric

  • 选择sales_order

  • 此量度对​ base_discount_amount ​列执行​ Sum,排序依据为​ created_at

    • Filters:

      • 添加Orders we count(保存的筛选器集)
      • 添加以下内容:
        • coupon_code不是[NULL]
      • 为该量度提供一个名称,如Coupon discount amount

创建功能板

  • 创建量度后:

    • 导航到Dashboards > Dashboard Options > Create New Dashboard**。
    • 为仪表板指定名称,如_Coupon Analysis_
  • 您可以在此处创建和添加所有报表。

生成报表

  • 新报告:
NOTE
每个报告的**0}列为Time Period。 All-time您可以根据分析需求随意更改此设置。 Adobe建议该仪表板上的所有报告都涵盖相同的时间段,如All timeYear-to-dateLast 365 days
  • 含优惠券的订单


    • 量度: Orders

      • 添加筛选器:
        • [A] coupon_code IS NOT [NULL]
    • Time period: All time


    • 间隔: None

    • Chart type:Number (scalar)

  • 没有优惠券的订单


    • 量度: Orders

      • 添加筛选器:
        • [A] coupon_code IS [NULL]
    • Time period: All time


    • 间隔: None

    • Chart type:Number (scalar)

  • 含优惠券的订单净收入


    • 量度: Revenue

      • 添加筛选器:
        • [A] coupon_code IS NOT [NULL]
    • Time period: All time


    • 间隔: None

    • Chart type: Number (scalar)

  • 优惠券折扣

    • Metric: Coupon discount amount
    • Time period: All time

    • 间隔: None
    • Chart type: Number (scalar)
  • 平均生命周期收入:已获得优惠券的客户

    • Metric: Avg lifetime revenue

      • 添加筛选器:
        • [A] Customer's first order's coupon_code IS NOT [NULL]
    • Time period: All time


    • 间隔: None

    • Chart type: Number (scalar)

  • 平均生命周期收入:未获得优惠券的客户

    • Metric: Avg lifetime revenue

      • 添加筛选器:
        • [A] Customer's first order's coupon_code IS[NULL]
    • Time period: All time


    • 间隔: None

    • Chart type: Number (scalar)

  • 优惠券使用情况详细信息(首次订购)

    • 量度1Orders

      • 添加筛选器:

        • [A] coupon_code 不是[NULL]
        • [B] Customer's order number 等于 1
    • 量度2Revenue

      • 添加筛选器:

        • [A] coupon_code 不是[NULL]
        • [B] Customer's order number 等于 1
      • 重命名: Net revenue

    • 量度3Coupon discount amount

      • 添加筛选器:

        • [A] coupon_code 不是[NULL]
        • [B] Customer's order number 等于 1
    • 创建公式: Gross revenue

      • Formula: (B – C)

      • Format: Currency
    • 创建公式:%折扣

      • 公式: (C / (B - C))

      • Format: Percentage
    • 创建公式: Average order discount

      • Formula: (C / A)

      • Format: Percentage
    • Time period: All time


    • 间隔: None


    • 图表类型: Table

  • 按第一张订单优惠券计算的平均生命周期收入

    • Metric:平均生命周期收入

      • 添加筛选器:
        • [A] coupon_code [NULL]
    • Time period: All time


    • 间隔: None

    • Chart type: Number (scalar)

  • 优惠券使用情况详细信息(首次订购)

    • Metric: Avg lifetime revenue

      • 添加筛选器:
        • [A] Customer's first order's coupon_code IS NOT [NULL]
    • Time period: All time


    • 间隔: None

    • Group by: Customer's first order's coupon_code


    • 图表类型: Column

  • 通过优惠券/非优惠券获取的新客户

    • 量度1New customers

      • 添加筛选器:

        • [A] Customer's first order's coupon_code IS NOT [NULL]
      • Rename: Coupon acquisition customer

    • 量度2New customers

      • 添加筛选器:

        • [A] coupon_code [NULL]
      • Rename: Non-coupon acquisition customer

    • Time period: All time

    • Interval: By Month

    • Chart type: Stacked Column

构建报表后,请参阅本主题顶部的图像,了解如何在功能板上组织报表。

NOTE
从Adobe Commerce 2.4.7开始,客户可以使用​ quote_coupons ​和​ sales_order_coupons ​表来了解客户如何使用多个优惠券。

用于多优惠券分析的表关系图

recommendation-more-help
e1f8a7e8-8cc7-4c99-9697-b1daa1d66dbc