if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "40773",
"name": "Marlin 5 Gen 3",
"price": "1199.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "purple_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40962",
"name": "Marlin 6 Gen 3",
"price": "1599.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "teal_bluedark",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}