if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "47224",
"name": "Procaliber 9.6 Gen 3",
"price": "55000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greenlight_tealdark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41618",
"name": "Procaliber 8",
"price": "37000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33241",
"name": "Procaliber Frame Set Gen 2",
"price": "35000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "white_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41615",
"name": "Procaliber 6",
"price": "28000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}