if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "33258",
"name": "Procaliber 9.5",
"price": "39000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "purpledark_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33241",
"name": "Procaliber Frame Set Gen 1",
"price": "35000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "white_black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}