if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "THB",
"impressions": [
{
"id": "12587",
"name": "ตัวล็อคสายเคเบิลแบบคอมโบพร้อมตัวดึงกลับ Kryptonite R2",
"price": "1100.0",
"brand": "Kryptonite",
"category": "Bike locks",
"variant": "black_orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33582",
"name": "สายล็อกรหัส Kryptonite KryptoFlex 815",
"price": "900.0",
"brand": "Kryptonite",
"category": "Bike locks",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}