if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "37883",
"name": "Trek 2023 Fetch+ 4 Cargo Box Steering Cable Set",
"price": "600.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "42048",
"name": "Trek Domane+ SLR Seat Tube Cable and Canbus Housing",
"price": "200.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "23371",
"name": "Bontrager Comp Shift Cable",
"price": "100.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}