if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "35296",
"name": "Checkpoint SLR 9 AXS",
"price": "12999.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "white_green",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41349",
"name": "Checkpoint SLR 7 AXS",
"price": "12499.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "yellowlight_bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35293",
"name": "Checkpoint SLR 6 AXS",
"price": "10999.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "yellow_bluedark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}