if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "41973",
"name": "Trek Quilted Crewneck Unisex Sweatshirt",
"price": "140.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "45365",
"name": "Trek Acidic Vibe Unisex Hoodie",
"price": "140.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "black_brown",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}