Google Analytics 4 實現電子商務事件设定

文章推薦指數: 80 %
投票人數:10人

purchase:購買成功 Haran的行銷筆記https://www.haranhuang.com/ >Google>GoogleAnalytics>GoogleAnalytics4實現電子商務事件设定 文章目錄 普通產品view_item_list:產品展示view_item:查看產品 select_item:點擊產品促銷產品view_promotion:展示促銷產品select_promotion:點擊促銷產品購物車add_to_cart:將產品添加到購物車remove_from_cart:將產品從購物車移除結算流程begin_checkout:開始結算add_payment_info:添加支付信息add_shipping_info:添加地址信息purchase:購買成功refund:退款全额退款部分退款 如果你是用GTM安裝GA的方式,請看GoogleAnalytics4:GoogleTagManager電商设定指南 這一節我們來介紹,如果你不用GoogleTagManager去安裝GoogleAnalytics,而是通過直接安裝gtag.js追蹤碼的方式,看如何實現電子商務的設定。

由於沒有使用GoogleTagManager,所以需要工程師去通過程式直接實現電子商務事件,它直接就能夠將事件發送給GA4,接下來,我們來看不同電商位置需要安裝的程式:   普通產品 view_item_list:產品展示 view_item:查看產品 select_item:點擊產品   view_item_list:產品展示 gtag('event','view_item_list',{ items:[{ item_id:'SKU_12345', item_name:'jeggings', coupon:'SUMMER_FUN', discount:2.22, index:5, item_list_name:'RelatedProducts', item_list_id:'related_products', affiliation:'GoogleStore', item_brand:'Gucci', item_category:'pants', item_variant:'black', price:9.99, currency:'USD', quantity:1 }], item_list_name:'Relatedproducts', item_list_id:'related_products' });   注意:item_list_name 或 item_list_id的值必須保持穩定。

對于給定列表,這些值應始終相同。

view_item:查看產品 gtag('event','view_item',{ currency:'USD', items:[{ item_id:'SKU_12345', item_name:'jeggings', coupon:'SUMMER_FUN', discount:2.22, affiliation:'GoogleStore', item_brand:'Gucci', item_category:'pants', item_variant:'black', price:9.99, currency:'USD', quantity:1 }], value:9.99 });     select_item:點擊產品 gtag('event','select_item',{ items:[{ item_id:'SKU_12345', item_name:'jeggings', coupon:'SUMMER_FUN', discount:2.22, index:5, item_list_name:'RelatedProducts', item_list_id:'related_products', affiliation:'GoogleStore', item_brand:'Gucci', item_category:'pants', item_variant:'black', price:9.99, currency:'USD', quantity:1 }], item_list_name:'Relatedproducts', item_list_id:'related_products' });     促銷產品 view_promotion:展示促銷產品 select_promotion:點擊促銷產品   view_promotion:展示促銷產品 gtag('event','view_promotion',{ items:[{ item_id:'SKU_12345', item_name:'jeggings', coupon:'SUMMER_FUN', discount:2.22, promotion_id:'P_12345', promotion_name:'SummerSale', creative_slot:'featured_app_1', location_id:'L_12345', affiliation:'GoogleStore', item_brand:'Gucci', item_category:'pants', item_variant:'Black', price:9.99, currency:'USD', quantity:1 }], location_id:'L_12345' });   select_promotion:點擊促銷產品 gtag('event','select_promotion',{ items:[{ item_id:'SKU_12345', item_name:'jeggings', coupon:'SUMMER_FUN', discount:2.22, promotion_id:'P_12345', promotion_name:'SummerSale', creative_name:'SummerBanner', creative_slot:'featured_app_1', location_id:'L_12345', affiliation:'GoogleStore', item_brand:'Gucci', item_category:'pants', item_variant:'Black', price:9.99, currency:'USD', quantity:1 }], location_id:'L_12345' });   購物車 add_to_cart:將產品添加到購物車 remove_from_cart:将產品從購物車中移除 购物车中currency和value是必须字段。

  add_to_cart:將產品添加到購物車 gtag('event','add_to_cart',{ currency:'USD', items:[{ item_id:'SKU_12345', item_name:'jeggings', coupon:'SUMMER_FUN', discount:2.22, affiliation:'GoogleStore', item_brand:'Gucci', item_category:'pants', item_variant:'black', price:9.99, currency:'USD', quantity:1 }], value:7.77 });     remove_from_cart:將產品從購物車移除 gtag('event','remove_from_cart',{ currency:'USD', items:[{ item_id:'SKU_12345', item_name:'jeggings', coupon:'SUMMER_FUN', discount:2.22, affiliation:'GoogleStore', item_brand:'Gucci', item_category:'pants', item_variant:'black', price:9.99, currency:'USD', quantity:1 }], value:7.77 });   結算流程 begin_checkout:開始結算 add_payment_info:添加支付信息 add_shipping_info:添加地址信息 purchase:購買成功 refund:退款 currency和value是必须字段,購買成功和退款中transaction_id是必须字段。

begin_checkout:開始結算 gtag('event','begin_checkout',{ coupon:'SUMMER_FUN', currency:'USD', items:[{ item_id:'SKU_12345', item_name:'jeggings', coupon:'SUMMER_FUN', discount:2.22, affiliation:'GoogleStore', item_brand:'Gucci', item_category:'pants', item_variant:'black', price:9.99, currency:'USD', quantity:1 }], value:7.77 });   add_payment_info:添加支付信息 gtag('event','add_payment_info',{ coupon:'SUMMER_FUN', currency:'USD', items:[{ item_id:'SKU_12345', item_name:'jeggings', coupon:'SUMMER_FUN', discount:2.22, affiliation:'GoogleStore', item_brand:'Gucci', item_category:'pants', item_variant:'black', price:9.99, currency:'USD', quantity:1 }], payment_type:'CreditCard', value:9.99 });   add_shipping_info:添加地址信息 gtag('event','add_shipping_info',{ coupon:'SUMMER_FUN', currency:'USD', items:[{ item_id:'SKU_12345', item_name:'jeggings', coupon:'SUMMER_FUN', discount:2.22, affiliation:'GoogleStore', item_brand:'Gucci', item_category:'pants', item_variant:'Black', price:9.99, currency:'USD', quantity:1 }], shipping_tier:'Ground', value:7.77 });   purchase:購買成功 gtag('event','purchase',{ affiliation:'GoogleStore', coupon:'SUMMER_FUN', currency:'USD', items:[{ item_id:'SKU_12345', item_name:'jeggings', coupon:'SUMMER_FUN', discount:2.22, affiliation:'GoogleStore', item_brand:'Gucci', item_category:'pants', item_variant:'black', price:9.99, currency:'USD', quantity:1 },{ item_id:'SKU_12346', item_name:'jeggings', coupon:'SUMMER_FUN', discount:2.22, affiliation:'GoogleStore', item_brand:'Gucci', item_category:'pants', item_variant:'gray', price:9.99, currency:'USD', quantity:1 }], transaction_id:'T_12345', shipping:3.33, value:21.09, tax:2.22 })   refund:退款 退款分為全額退款和部分退款 全额退款 gtag('event','refund',{ affiliation:'GoogleStore', coupon:'SUMMER_FUN', currency:'USD', transaction_id:'T_12345', shipping:3.33, value:12.21, tax:1.11 });   部分退款 gtag('event','refund',{ affiliation:'GoogleStore', coupon:'SUMMER_FUN', currency:'USD', items:[{ item_id:'SKU_12345', item_name:'jeggings', coupon:'SUMMER_FUN', discount:2.22, affiliation:'GoogleStore', item_brand:'Gucci', item_category:'pants', item_variant:'black', price:9.99, currency:'USD', quantity:1 }], transaction_id:'T_12345', shipping:3.33, value:12.21, tax:1.11 });     版權所有,均為原創轉載請註明標題:GoogleAnalytics4實現電子商務事件设定!網址鏈接:https://www.haranhuang.com/google-analytics-4-implements-e-commerce-event-setup.html! Like(1) GoogleAnalytics4中設定自訂事件(事件層級自訂維度和自訂指標) 認識GA4中的探索(區隔和篩選器) 舊版GA和和新版GA4的對比(2022) GoogleAnalytics4的幾個缺點 使用GoogleAnalytics4的10個優點 GoogleAnalytics4中的資料匯入 詳解GoogleAnalytics4中的自動收集的事件GoogleAnalytics4中的加強型評估事件變更GoogleAnalytics4報表和使用者介面的顯示語言GoogleAnalytics4免費版和付費版的差異GoogleAnalytics4中透過子資源實現資料檢視效果GoogleAnalytics4中的偵錯模式DebugViewGoogleAnalytics4中將ClientID設定為自訂維度認識GoogleAnalytics4的工作階段(Sessions) 發佈我的留言 取消留言 發佈留言 留言通知 表情 贴图 加粗 删除线 居中 斜体 Hi,*为發佈留言必須填寫。

顯示名稱*顯示名稱* 電子郵件*電子郵件地址* 個人網站網址個人網站網址 近期文章 舊版GA和和新版GA4的對比(2022) GoogleAnalytics4的幾個缺點 使用GoogleAnalytics4的10個優點 GoogleOptimize免費版和付費版的對比 GoogleMarketPlatform:統一的廣告和分析平臺 GoogleAnalytics4中的資料匯入 詳解GoogleAnalytics4中的自動收集的事件 透過使用者介面修改及建立事件:GA4中的無程式事件追蹤 最近留言test BasicDirectCallRule. CrossDomainTracking(UniversalAnlaytics) CrossDomainTracking(GA4) 最新评论



請為這篇文章評分?