if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "THB",
"impressions": [
{
"id": "09848",
"name": "Bontrager XXX Aero Brake Levers",
"price": "7325.0",
"brand": "Bontrager",
"category": "Bike brakes, pads, & levers",
"variant": "greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "45164",
"name": "ก้านดิสก์เบรก Promax DC927",
"price": "950.0",
"brand": "Promax",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "45163",
"name": "ก้านดิสก์เบรก Promax DC925",
"price": "900.0",
"brand": "Promax",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "33246",
"name": "คันเบรก Lee Chi V-Brake",
"price": "850.0",
"brand": "Lee Chi",
"category": "Bike brakes, pads, & levers",
"variant": "greylight_black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "41469",
"name": "คันเบรก Promax LM-48",
"price": "725.0",
"brand": "Lee Chi",
"category": "Bike brakes, pads, & levers",
"variant": "greylight_black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "09955",
"name": "คันเบรกสำหรับเด็ก Trek",
"price": "325.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}