if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "44093",
"name": "Trek Velocis Mips Asia Fit Helmet",
"price": "400.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44661",
"name": "Trek Ballista Mips Asia Fit Road Bike Helmet",
"price": "350.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34588",
"name": "Trek Velocis Mips Road Bike Helmet",
"price": "400.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37123",
"name": "Trek Ballista Mips Road Bike Helmet",
"price": "350.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}