if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "THB",
"impressions": [
{
"id": "46220",
"name": "Madone SL 7 Gen 8",
"price": "229000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_purpledark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "57664",
"name": "Madone SL 7 Gen 8",
"price": "194000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "57662",
"name": "Madone SL 6 Gen 8",
"price": "179000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "46219",
"name": "Madone SL 6 Gen 8",
"price": "179000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "57653",
"name": "Madone SL 5 Gen 8",
"price": "99000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "41607",
"name": "Domane AL 4 Gen 4",
"price": "49000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "59667",
"name": "Madone SLR Gen 8 Frameset",
"price": "179000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white_blue",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "94601",
"name": "Domane SLR Gen 5 Frameset",
"price": "145000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue_white",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}