if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "41348",
"name": "Domane SL 5 Gen 4",
"price": "63000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37417",
"name": "Madone SLR 6 AXS Gen 7",
"price": "160000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35022",
"name": "Émonda SLR 6 AXS",
"price": "160000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37346",
"name": "Domane SLR 6 AXS Gen 4",
"price": "155000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_blue",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36152",
"name": "Domane SL 6 AXS Gen 4",
"price": "95000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}