if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "34744",
"name": "Bontrager Rapid Pack Hydro",
"price": "2000.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "14798",
"name": "Bontrager Rapid Pack",
"price": "1300.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "greendark",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}