if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "THB",
"impressions": [
{
"id": "26183",
"name": "ฝาครอบเบรกหลัง Trek Speed Concept Gen 2 (ไม่เป็นไปตามมาตรฐาน UCI)",
"price": "6590.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36982",
"name": "Trek Speed Concept Small Gen 2 ฝาครอบเบรกหน้า",
"price": "6550.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36983",
"name": "Trek Speed Concept X-Small/Medium Gen 2 ฝาครอบเบรกหน้า",
"price": "5750.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "12286",
"name": "ฝาครอบเบรกหน้า Trek Speed Concept Gen 2 ขนาดใหญ่",
"price": "5500.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "22311",
"name": "ฝาครอบเบรกหลังรุ่นถูกกฎ UCI สำหรับจักรยาน Trek Speed Concept",
"price": "4750.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "26171",
"name": "น็อตฝาครอบเบรกหน้า Trek Madone 9",
"price": "100.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "grey",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}