Overview
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": "More Options",
"position": 1
}
,
{
"id": "45327",
"name": "microSHIFT SL-M6285-R 8-Speed Shifter",
"price": "400.0",
"brand": "microSHIFT",
"category": "Bike shifters",
"variant": "black",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}