if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "THB",
"impressions": [
{
"id": "38001",
"name": "Trek 2022 Speed Concept SLR แฮนด์บาร์/คอแฮนด์",
"price": "32900.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "38009",
"name": "เบสบาร์ Trek 2022 Speed Concept TT",
"price": "32900.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "13910",
"name": "Bontrager Speed Concept Base UCI Legal Aero Handlebar",
"price": "15500.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "13909",
"name": "แฮนด์แอโร Bontrager Speed Concept Base (ไม่ผ่านกฎ UCI)",
"price": "15500.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "30032",
"name": "Trek TT Mono Ergo ส่วนขยาย",
"price": "6750.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "41724",
"name": "Trek TT โมโนส่วนขยาย ปลั๊กอิน",
"price": "6750.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "41723",
"name": "แอโรบาร์ Trek TT Mono Extension",
"price": "6750.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "41170",
"name": "ชุดแผ่นรองแขน Trek Speed Concept",
"price": "2250.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "41169",
"name": "ช่องเก็บของที่แฮนด์ Trek Speed Concept พร้อมโฟม",
"price": "125.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "41168",
"name": "โฟมรองฝาครอบแฮนด์ Trek Speed Concept ",
"price": "125.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}