[僅限PaaS]{class="badge informative" title="僅適用於雲端專案(Adobe管理的PaaS基礎結構)和內部部署專案的Adobe Commerce 。"}
基本抵用券程式碼分析
瞭解企業的優惠券成效是細分訂單和更好地瞭解客戶習慣的有趣方式。
本主題記錄建立此分析所需的步驟,以瞭解取得優惠券的客戶如何執行、檢視趨勢以及追蹤個別優惠券程式碼的使用情況。
快速入門
首先,附註說明如何追蹤優惠券代碼。 如果客戶將抵用券套用至訂單,則會發生下列三件事:
- 折扣反映在
base_grand_total金額中(您的Revenue量度在Commerce Intelligence中) - 優惠券代碼儲存在
coupon_code欄位中。 如果此欄位為NULL (空白),則訂單沒有相關聯的抵用券。 - 折扣金額儲存在
base_discount_amount中。 根據您的設定,此值可能顯示為負數或正數。
自Commerce 2.4.7起,客戶可將多個抵用券代碼套用至訂單。 在此案例中:
- 所有套用的優惠券代碼都儲存在
coupon_code的sales_order_coupons欄位中。 套用的第一個抵用券代碼也儲存在coupon_code的sales_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_。
-
您可在此建立和新增所有報表。
建立報表
- 新報告:
All-time您可以根據分析需求隨意變更。 Adobe建議此儀表板上的所有報告涵蓋相同時段,例如All time、Year-to-date或Last 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:
-
平均期限收入:已取得優惠券的客戶
-
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_codeIS[NULL]
- [A]
- 新增篩選器:
-
Time period:
All time -
間隔:None -
Chart type:
Number (scalar)
-
-
優惠券使用詳細資料(首次訂購)
-
量度
1:Orders-
新增篩選器:
- [
A]coupon_code不是[NULL] - [
B]Customer's order number等於1
- [
-
-
量度
2:Revenue-
新增篩選器:
- [
A]coupon_code不是[NULL] - [
B]Customer's order number等於1
- [
-
重新命名:
Net revenue
-
-
量度
3:Coupon discount amount-
新增篩選器:
- [
A]coupon_code不是[NULL] - [
B]Customer's order number等於1
- [
-
-
建立公式:
Gross revenue- Formula:
(B – C) -
Format:Currency
- Formula:
-
建立公式: %已折扣
- 公式:
(C / (B - C)) -
Format:Percentage
- 公式:
-
建立公式:
Average order discount- Formula:
(C / A) -
Format:Percentage
- Formula:
-
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
-
-
依優惠券/非優惠券贏取的新客戶
-
量度
1:New customers-
新增篩選器:
- [
A]Customer's first order's coupon_code不是[NULL]
- [
-
Rename:
Coupon acquisition customer
-
-
量度
2:New customers-
新增篩選器:
- [
A]coupon_code是[NULL]
- [
-
Rename:
Non-coupon acquisition customer
-
-
Time period:
All time -
Interval:
By Month -
Chart type:
Stacked Column
-
建立報表後,請參閱本主題頂端的影像,瞭解如何在控制面板上組織報表。