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