對電子商務事件套用折扣

如要為電子商務事件中的商品套用折扣,方法是將 discount 參數和折扣值。不使用百分比 使用 discount 參數來折抵。


網路商店的每雙襪子費用為 $6 美元。消費者購買 3 雙襪子,每雙可獲得 $2 美元的折扣。本例中為 purchase 事件代碼 看起來會像這樣:

gtag("event", "purchase", {
    transaction_id
: "T_12345",
    coupon
: "socksSale",
    value
: 12.00, // value = quantity x sale price
    currency
: "USD", // The currency of the value, discount, and price
    items
: [
     
{
      item_id
: "SKU_12345",
      item_name
: "Socks",
      discount
: 2.00, // The discount per item
      price
: 4.00, // The sale price is the per item list price (6.00) minus discount (2.00)
      quantity
: 3 // The number of items sold
   
},
]
});

回報折扣

下列維度和指標可讓您針對折扣製作報表

維度或指標 說明
商品優待券 用來購買商品 (例如您銷售的產品) 的優待券。
訂單優待券 您為折扣商品指定的優待券名稱或代碼。
商品收益 商品的總收益 (不含稅金和運費)。商品 收益 = quantity x price

如要套用活動層級折扣,請建立自訂折扣 指標,以產生事件層級折扣報表。