if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "THB",
"impressions": [
{
"id": "48772",
"name": "ที่บังแดดหมวกนิรภัย Trek Rally WaveCel",
"price": "600.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44098",
"name": "หมวกกันน็อกสำหรับเด็ก Trek Solstice พร้อมบังแดด",
"price": "150.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "44094",
"name": "หมวกกันน็อกจักรยาน Trek Solstice Visor",
"price": "150.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "44099",
"name": "หมวกกันน็อกเด็ก Trek Solstice พร้อมบังแดด",
"price": "100.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}