if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "THB",
"impressions": [
{
"id": "02381",
"name": "ผ้าเบรก Bontrager Carbon Stop Cork",
"price": "1500.0",
"brand": "Bontrager",
"category": "Bike brakes, pads, & levers",
"variant": "brown",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40920",
"name": "ผ้าเบรก Tektro Q13RS พร้อมสปริงถ่าง",
"price": "825.0",
"brand": "Tektro",
"category": "Bike brakes, pads, & levers",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41589",
"name": "Promax PD071S Disc Brake Pads",
"price": "725.0",
"brand": "Promax",
"category": "Bike brakes, pads, & levers",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41590",
"name": "Promax PD099S Disc Brake Pads",
"price": "725.0",
"brand": "Promax",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "12253",
"name": "ผ้าเบรกดิสก์ Tektro",
"price": "550.0",
"brand": "Tektro",
"category": "Bike brakes, pads, & levers",
"variant": "greendark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "33274",
"name": "ผ้าเบรกดิสก์ Tektro F10BS",
"price": "425.0",
"brand": "Tektro",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}