if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "THB",
"impressions": [
{
"id": "24977",
"name": "Trek Madone SLR Brakes",
"price": "10000.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "13656",
"name": "Trek Madone 9 Aero Integrated Brake Caliper",
"price": "9125.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "13070",
"name": "Bontrager Speed Stop Integrated Brake",
"price": "6825.0",
"brand": "Bontrager",
"category": "Bike brakes, pads, & levers",
"variant": "black_greydark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "12287",
"name": "Trek Speed Concept Brake Caliper",
"price": "5250.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "14028",
"name": "Electra Replacement Loft Brakes",
"price": "1500.0",
"brand": "Lee Chi",
"category": "Bike brakes, pads, & levers",
"variant": "greylight",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "10775",
"name": "Lee Chi Long Reach Brake Caliper",
"price": "625.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}