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": "44116",
"name": "Trek Solstice Asia Fit Bike Helmet",
"price": "80.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "34588",
"name": "Trek Velocis Mips Road Bike Helmet",
"price": "400.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37123",
"name": "Trek Ballista Mips Road Bike Helmet",
"price": "350.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40249",
"name": "Trek Circuit Wavecel Helmet",
"price": "250.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "black_purple",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}