if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "28791",
"name": "Bontrager XXX WaveCel Trek-Segafredo Decals",
"price": "39.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black_white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "09577",
"name": "Bontrager Public Safety Services Helmet Stickers",
"price": "17.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}