if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "THB",
"impressions": [
{
"id": "40249",
"name": "หมวกกันน็อก Trek Circuit WaveCel",
"price": "5500.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white_tan",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44426",
"name": "ชุดบันไดแบน Trek Line Comp",
"price": "1500.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "purpledark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "44800",
"name": "Trek Ion 100 R/Flare R City Bike Light Set",
"price": "2900.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "47140",
"name": "ขากระติกน้ำรีไซเคิล Trek Elite",
"price": "620.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}