if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "23371",
"name": "Bontrager Comp Shift Cable",
"price": "100.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "45328",
"name": "microSHIFT SL-M6295-R 9-Speed Shifter",
"price": "500.0",
"brand": "microSHIFT",
"category": "Bike shifters",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "45327",
"name": "microSHIFT SL-M6285-R 8-Speed Shifter",
"price": "400.0",
"brand": "microSHIFT",
"category": "Bike shifters",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}