基本抵用券程式碼分析

瞭解企業的優惠券成效是細分訂單和更好地瞭解客戶習慣的有趣方式。

本主題記錄建立此分析所需的步驟,以瞭解取得優惠券的客戶如何執行、檢視趨勢以及追蹤個別優惠券程式碼的使用情況。

快速入門

首先,附註說明如何追蹤優惠券代碼。 如果客戶將抵用券套用至訂單,則會發生下列三件事:

  • 折扣反映在base_grand_total金額中(您的Revenue量度在Commerce Intelligence中)
  • 優惠券代碼儲存在coupon_code欄位中。 如果此欄位為NULL (空白),則訂單沒有相關聯的抵用券。
  • 折扣金額儲存在base_discount_amount中。 根據您的設定,此值可能顯示為負數或正數。

自Commerce 2.4.7起,客戶可將多個抵用券代碼套用至訂單。 在此案例中:

  • 所有套用的優惠券代碼都儲存在sales_order_couponscoupon_code欄位中。 套用的第一個抵用券代碼也儲存在sales_ordercoupon_code欄位中。 如果此欄位為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}列為All-time。 Time Period您可以根據分析需求隨意變更。 Adobe建議此儀表板上的所有報告涵蓋相同時段,例如All timeYear-to-dateLast 365 days
  • 含優惠券的訂單

    • 公制: Orders

      • 新增篩選器:
        • [A] coupon_code 不是 [NULL]
    • Time period: All time

    • 間隔: None

    • Chart type:Number (scalar)

  • 沒有優惠券的訂單

    • 公制: Orders

      • 新增篩選器:
        • [A] coupon_code [NULL]
    • Time period: All time

    • 間隔: None

    • Chart type:Number (scalar)

  • 含優惠券的訂單淨收入

    • 公制: Revenue

      • 新增篩選器:
        • [A] coupon_code 不是 [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 不是 [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 不是 [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 不是 [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