if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "30192",
"name": "Domane SLR Gen 2 Rim Frame Set",
"price": "62200.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greydark_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37303",
"name": "Domane SLR Gen 4 Frame Set",
"price": "57000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37302",
"name": "Domane SL Gen 4 Frame Set",
"price": "42000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "30190",
"name": "Domane SL Gen 2 Rim Frame Set",
"price": "32000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36740",
"name": "Domane+ SLR 7 AXS",
"price": "190000.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36149",
"name": "Domane SL 5 Gen 4",
"price": "63000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}