文章目錄
更新時間:2024年10月29號
有些人在GA4佈署完電商後,purchase事件能正常記錄到,但GA4裡的電子商務收益為零,可能是一下幾種原因:
資料限制
你的賬戶權限不夠,是無費用指標,無收益指標,所以看不到。
在GA4中點擊「管理」——「資源存取權管理」,點擊對應的用戶賬戶,然後看「資料限制 (僅限 GA4 資源)」:
如果權限不夠,請向管理員申請。
事件參數錯誤
電子商務收益是由參數currency和value決定,缺一不可,所以這兩個參數之一錯誤都會導致電子商務收益為零。
如currency參數沒設定或設定錯誤導致,currency请使用 [GA4] 支援的貨幣和代碼
資料層變數設定錯誤
purchase事件的資料層如下:
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: "purchase",
ecommerce: {
transaction_id: "T_12345",
affiliation: "Google Merchandise Store",
value: 36.32,
tax: 4.90,
shipping: 5.99,
currency: "USD",
coupon: "SUMMER_SALE",
items: [
{
item_id: "SKU_12345",
item_name: "Stan and Friends Tee",
affiliation: "Google Merchandise Store",
coupon: "SUMMER_FUN",
currency: "USD",
discount: 2.22,
index: 0,
item_brand: "Google",
item_category: "Apparel",
item_category2: "Adult",
item_category3: "Shirts",
item_category4: "Crew",
item_category5: "Short sleeve",
item_list_id: "related_products",
item_list_name: "Related Products",
item_variant: "green",
location_id: "L_12345",
price: 9.99,
quantity: 1
},
{
Product 2
}]
}
});
以value為例,資料層變數應該要設定為ecommerce.value,如果直接設定為value,那麼就是錯的。
或是將資料層變數版本設置為1也是錯的,默認為2才是對,不要去修改它。
資料層沒有發送出去
資料層沒有發送發送出去,自然沒有資料。





