購物車追蹤

程式碼

當「加入購物車」或「移除購物車」時,透過 Javascript 填入「商品」資料後發送。

itg('event', 'product',{
  'type':'',
  'id': '',
  'category': '',
  'brand': '',
  'tag': '',
  'price':'',
  'user':{
    'type': '',
    'id': '',
    'email': '',
    'phone': ''
  }
});

參數說明

必要參數說明

type

string

商品行為:

  • 加入購物車:add

  • 移除購物車:remove

id

string

商品 ID,每個商品代表ID

category

string

商品分類,商品所歸屬分類

brand

string

商品品牌,商品所屬品牌名稱

tag

string

商品標籤,商品標籤或關鍵字,多個以「,」逗號區隔,將用於「受眾篩選」之條件

price

string

商品價錢,設置商品金額或價值,可於受眾篩選條件選擇

user.type

string

使用者來源,例如:own, line, facebook, google

  • 自有會員:own

  • Line 來源:line

  • Facebook 來源:facebook

  • Google 來源:google

user.id

string

使用者 id,串聯 User ID 資料,讓「受眾篩選」的「整合資訊」條件更加精準。

user.email

string

使用者 email,將串聯 User Email 資料,讓「受眾篩選」的「整合資訊」條件更加精準。

user.phone

string

使用者 phone,將串聯 User Phone 資料,讓「受眾篩選」的「整合資訊」條件更加精準。

Last updated