if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "41613",
"name": "Marlin 4 Gen 2",
"price": "12500.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35866",
"name": "Marlin Frameset Gen 2",
"price": "6000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_blue",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}