if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "44116",
"name": "Trek Solstice Asia Fit Bike Helmet",
"price": "80.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44115",
"name": "Trek Solstice Asia Fit Mips Bike Helmet",
"price": "120.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36986",
"name": "Trek Starvos WaveCel Asia Fit Bike Helmet",
"price": "160.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36949",
"name": "Trek Rally WaveCel Mountain Bike Helmet",
"price": "250.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "black_greendark",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}