[僅限PaaS]{class="badge informative" title="僅適用於雲端專案(Adobe管理的PaaS基礎結構)和內部部署專案的Adobe Commerce 。"}
進階抵用券程式碼分析
瞭解您的企業優惠券績效對於細分您的訂單以及更好地瞭解您的客戶來說是一種有趣的方式。 本主題將逐步帶您瞭解建立分析的步驟,以瞭解您透過使用抵用券而獲得哪些客戶、其如何執行以及追蹤一般抵用券的使用情況。
此分析包含進階計算資料行。
快速入門
首先,您必須確保將下列欄同步至您的Data Warehouse。 如果沒有,請瀏覽至「Manage Data > Data Warehouse」並同步處理下列專案,繼續追蹤他們:
- sales_flat_order 資料表
- 抵用券_代碼
- base_discount_amount
計算欄
要建立的資料欄,不考慮來賓訂單原則:
-
sales\_flat\_order資料表 -
已套用訂單優惠券?
-
Column type:
Same Table => CALCULATION -
Inputs:
A:coupon\_code
-
資料型別:String -
Calculation:
A為Null然後No coupon否則Coupon結束的情況
-
-
[INPUT] customer_id — 優惠券代碼
-
Column type:
Same Table => CALCULATION -
Inputs:
A:customer\_idB:coupon\_code
-
Datatype字串
-
Calculation:
concat(A,' - ',B)
-
-
含此優惠券的訂單數
- Column type:
Same Table => EVENT\_NUMBER - 事件擁有者:
INPUT customer_id - coupon code - 事件排名:
created\_at - Filters:
Orders we count篩選器集
- Column type:
如果客體訂單不受支援,則要建立的其他欄位:
-
customer\_entity資料表-
客戶的第一個訂單包含優惠券? (優惠券/無優惠券)
-
Column type:
Many to One => MAX -
Path:
sales\_flat\_order.customer\_id = customer\_entity.entity\_id -
選取column:
Order has coupon applied? (Coupon/No coupon) -
Filters:
A:Orders we countB:Customer's order number = 1
-
客戶的首筆訂單優惠券
-
Column type:
Many to One => MAX -
Path:
sales\_flat\_order.customer\_id = customer\_entity.entity\_id -
選取column:
coupon\_code -
Filter:
A:Orders we countB:Customer's order number = 1
-
-
客戶使用的贈券期限數
-
Column type:
Many to One => COUNT -
Path:
sales\_flat\_order.customer\_id = customer\_entity.entity\_id -
Filter:
A:Orders we countB:Order has coupon applied? (Coupon/No coupon) = Coupon
-
-
優惠券贏取客戶或非優惠券贏取客戶
-
Column type:
Same Table => CALCULATION -
Inputs:
A:Customer's first order included a coupon? (Coupon/No coupon)
-
資料型別:String -
Calculation: 案例,當A='Coupon'然後'Coupon acquisition customer'否則'Non-coupon acquisition customer'結束
-
-
含優惠券的客戶 訂單百分比
-
Column type:
Same Table => CALCULATION -
Inputs:
A:User's lifetime number of coupons usedB:User's lifetime number of orders
-
資料型別:Decimal -
Calculation: 當A為null或B為null或B=0然後為null時,否則A/B結束
-
-
客戶的抵用券使用量
-
Column type:
Same Table => Calculation -
Inputs:
A:Percent of customer's orders with coupon
-
資料型別:String -
Calculation: 當A為Null時為Null,當A=0時為「Nevere used coupon」,當A<0.5時為「Moverly full price」,當A=0.5時為「50/50」,當A=1時為「Coupons only」,當A>0.5時為「Moverly coupon」,否則為「Undefined」時為
-
-
-
sales\_flat\_order資料表-
客戶的第一個訂單包含優惠券? (優惠券/無優惠券)
- Column type:
One to Many => JOINED\_COLUMN - Path:
sales\_flat\_order.customer\_id = customer\_entity.entity\_id - 選取column:
Customer's first order included a coupon? (Coupon/No coupon)
^
- Column type:
-
客戶的首筆訂單優惠券
- Column type:
One to Many => JOINED\_COLUMN - Path:
sales\_flat\_order.customer\_id = customer\_entity.entity\_id - 選取column:
Customer's first order coupon?
- Column type:
-
如果客體訂單不受支援,則要建立的其他欄位:
-
sales\_flat\_order資料表- 客戶的第一個訂單包含優惠券? (優惠券/無優惠券) - 由分析人員建立,作為您的[優惠券分析]票證的一部分
- 分析人員建立的客戶第一筆訂單優惠券-,做為您[優惠券分析]票證的一部分
-
分析人員建立作為[COUPON ANALYSIS]票證一部分的- 使用之客戶優惠券的期限數
-
優惠券贏取客戶或非優惠券贏取客戶
-
Column type:
Same Table => CALCULATION -
Inputs:
A:Customer's first order included a coupon? (Coupon/No coupon)
-
資料型別:String -
Calculation: 案例,當A='Coupon'然後'Coupon acquisition customer'否則'Non-coupon acquisition customer'結束
-
-
含優惠券的客戶 訂單百分比
-
Column type:
Same Table => CALCULATION -
Inputs:
A:User's lifetime number of coupons usedB:User's lifetime number of orders
-
資料型別:Decimal -
Calculation: 當A為null或B為null或B=0然後為null時,否則A/B結束
-
-
客戶的抵用券使用量
-
Column type:
Same Table => Calculation -
Inputs:
A:Percent of customer's orders with coupon
-
資料型別:String -
Calculation: 當A為Null時為Null,當A=0時為「Nevere used coupon」,當A<0.5時為「Moverly full price」,當A=0.5時為「50/50」,當A=1時為「Coupons only」,當A>0.5時為「Moverly coupon」,否則為「Undefined」時為
-
量度
-
優惠券折扣金額
Orders we countOrder has coupon applied? (Coupon/No coupon)= Coupon
-
在
sales\_flat\_order資料表中 -
此量度執行 總和
-
在
discount\_amount欄上 -
依
created\_at時間戳記排序 -
Filter:
-
已使用的抵用券數目
Orders we countOrder has coupon applied? (Coupon/No coupon)= Coupon
-
在
sales\_flat\_order資料表中 -
此量度執行 計數
-
在
entity\_id欄上 -
依
created\_at時間戳記排序 -
Filter:
報表
-
已取得優惠券與已取得非優惠券客戶的 %
- Metric:
New customers
- Metric:
-
量度
A:Coupon acquisitions -
Time period:
All time -
間隔:None -
Group by:
Coupon acquisitions customer或Non coupon acquisition customer -
圖表型別:Pie -
已取得優惠券與未取得優惠券的客戶數目
- Metric:
New customers
- Metric:
-
量度A:
Coupon acquisitions -
Time period:
All time -
Interval:
By Month -
Group by:
Coupon acquisitions customer或Non coupon acquisition customer -
Chart type:
Stacked column -
平均期限收入:優惠券常見問答集。 (90+天存留期)
- Metric:
Average lifetime revenue - Filter:
- 客戶的第一筆訂單包含優惠券(優惠券/無優惠券) =優惠券
- Metric:
-
量度
A:Average lifetime revenue (at least 3 months age) -
Time period:
X years ago to 90 days ago -
間隔:None -
圖表型別:Scalar -
平均存留期收入:無優惠券常見問答集。 (90+天存留期)
- Metric:平均期限收入
- Filter:
- 客戶的第一筆訂單包含優惠券(優惠券/無優惠券) =無優惠券
-
量度
A:Average lifetime revenue (at least 3 months age) -
Time period:
X years ago to 90 days ago -
間隔:None -
圖表型別:Scalar -
依第一筆贈券的平均期限收入
- Metric:
Average lifetime revenue
- Metric:
-
量度
A:Average lifetime revenue -
Time period:
All time -
間隔:None -
Group by:
Customer's first order's coupon -
圖表型別:Column
-
重複訂購可能性:優惠券取得
-
Metric:
Number of orders -
Filter:
- 客戶的第一筆訂單包含優惠券(優惠券/無優惠券) =優惠券
-
Metric:
Number of orders -
Filter:
- 客戶的第一筆訂單包含優惠券(優惠券/無優惠券) =優惠券
- 客戶的上次訂單是哪個? =否
-
公式:B/A -
Format:
Percentage % -
從
Customer's by lifetime orders圖表選取統計顯著數字。 檢視圖表時,一個好的規則是尋找貯體中具有30個或更多客戶的訂單編號。 根據您的資料集,這可能是很大的數字,因此歡迎新增1-10。
-
-
量度
A:Number of orders -
量度
B:Number of non last orders -
Formula:
Repeat order probability -
Time period:
All time -
間隔:None -
Group by:
Customer's order number -
Chart type:
Bar chart -
重複訂購機率:非優惠券收購
-
Metric:
Number of orders -
Filter:
- 客戶的第一筆訂單包含優惠券(優惠券/無優惠券) =無優惠券
-
Metric:
Number of orders -
Filter:
- 客戶的第一筆訂單包含優惠券(優惠券/無優惠券) =無優惠券
- 客戶的上次訂單是哪個? =否
-
公式:B/A -
Format:
Percentage % -
從
Customer's by lifetime orders圖表或1-5中選取統計顯著數字。
-
-
量度
A:Number of orders -
量度
B:Number of non last orders -
Formula:
Repeat order probability -
Time period:
All time -
間隔:None -
Group by:
Customer's order number -
Chart type:
Bar chart -
已取得優惠券的客戶優惠券使用率(重複訂購)
-
Metric:
New customers -
Filter:
- 優惠券取得客戶或非優惠券取得客戶=優惠券取得
-
Metric:
Number of orders -
Filter:
- 客戶的訂單編號> 1
- 客戶的第一筆訂單是否包含抵用券? (抵用券/無抵用券) =抵用券
-
Metric:
Number of orders -
Filter:
- 客戶的訂單編號> 1
- 客戶的第一筆訂單是否包含抵用券? (抵用券/無抵用券) =抵用券
- 已套用訂單優惠券? (抵用券/無抵用券) =抵用券
-
公式:C/B -
Format:
Percentage %
-
-
量度
A:Coupon-acquired customers -
量度
B:Number of repeat orders -
量度
C:Number of repeat orders with coupon -
Formula:
% of repeat orders with coupon -
Time period:
All time -
間隔:None -
圖表型別:Table(可以調換此表格以提供更好的視覺效果) -
非優惠券取得客戶的優惠券使用率(重複訂購)
-
Metric:
New customers -
Filter:
- 優惠券取得客戶或非優惠券取得客戶=非優惠券取得
-
Metric:
Number of orders -
Filter:
- 客戶的訂單編號> 1
- 客戶的第一筆訂單是否包含抵用券? (抵用券/無抵用券) =無抵用券
-
Metric:
Number of orders -
Filter:
- 客戶的訂單編號> 1
- 客戶的第一筆訂單是否包含抵用券? (抵用券/無抵用券) =無抵用券
- 已套用訂單優惠券? (抵用券/無抵用券) =抵用券
-
公式:C/B -
Format:
Percentage %
-
-
量度
A:Non-coupon-acquired customers -
量度
B:Number of repeat orders -
量度
C:Number of repeat orders with coupon -
Formula:
% of repeat orders with coupon -
Time period:
All time -
間隔:None -
圖表型別:Table(可以調換此表格以提供更好的視覺效果) -
優惠券使用詳細資料(首次訂購)
-
Metric:
Number of orders -
Filter:
- 客戶的訂單編號= 1
- 含此抵用券的訂單數> 10
-
公制:Revenue -
Filter:
- 客戶的訂單編號= 1
- 含此抵用券的訂單數> 10
-
Metric:
Coupon discount amount -
Filter:
- 客戶的訂單編號= 1
- 含此抵用券的訂單數> 10
-
Formula:
B-C(如果C是負數);B+C (如果C是正數) -
格式:Currency -
Metric:
Average order value -
Filter:
- 客戶的訂單編號= 1
- 含此抵用券的訂單數> 10
-
-
量度
A:First time orders (FTO) -
量度
B:Revenue from FTO -
量度
C:Discounts applied to FTO -
Formula:
Gross revenue from FTO -
量度
E:Average order value for FTO -
Time period:
All time -
間隔:None -
Group by:
coupon code -
圖表型別:Table
-
含優惠券的訂單數(所有時間)
- Metric:
Number of coupons used
- Metric:
-
量度
A:Number or orders with coupon -
Time period:
All time -
間隔:None -
圖表型別:Scalar -
含優惠券的訂單淨收入(所有時間)
-
公制:Revenue - Filter:
- 已套用訂單優惠券? (抵用券/無抵用券) =抵用券
-
-
量度
A:Net revenue from orders with coupons -
Time period:
All time -
間隔:None -
圖表型別:Scalar -
優惠券折扣(所有時間)
- Metric:
Number of coupons used
- Metric:
-
量度
A:Coupon discount amount -
Time period:
All time -
間隔:None -
圖表型別:Scalar -
含和不含抵用券的訂單數
- Metric:
Number of orders
- Metric:
-
量度
A:Number of orders -
Time period:
Last 24 months -
間隔:None -
Group by:
Order has coupon applied? (Coupon/No coupon) -
Chart type:
Stacked column -
重複使用者之間的優惠券使用量
- Metric:
New customers - Filter:
- 客戶期限訂單數> 1
- Metric:
-
量度
A:New customers -
Time period:
All time -
間隔:None -
Group by:
Customer's coupon usage -
圖表型別:Pie -
優惠券使用詳細資料
-
Metric:
Number of orders with coupon -
Filter:
- 含此抵用券的訂單數> 10
-
公制:Revenue -
Filter:
- 含此抵用券的訂單數> 10
-
Metric:
Coupon discount amount -
Filter:
- 含此抵用券的訂單數> 10
-
Formula:
B-C(如果C為負數);B+C(如果C為正數) -
格式:Currency -
Formula:
C/(B-C)(如果C為負數);C/(B+C)(如果C為正數) -
格式:Percentage -
Metric:
Average order value -
Filter:
- 含此抵用券的訂單數> 10
-
公式:C/A -
格式:Currency -
Metric:
Distinct buyers -
Filter:
- 含此抵用券的訂單數> 10
-
-
量度
A:Number of orders -
量度
B:Net revenue from orders -
量度
C:Total discounts applied -
Formula:
Gross revenue -
Formula:
% discounted -
量度
F:Average net order value -
Formula:
Average order discount -
量度
H:Distinct buyers -
Time period:
All time -
間隔:None -
Group by:
coupon code -
圖表型別:Table
編譯所有報表後,您可以視需要在控制面板上組織報表。 結果看起來可能像頁面頂端的影像。
如果您在建立此分析時遇到任何問題,或只是想與專業服務團隊互動,請聯絡支援人員。