if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "31962",
"name": "Gates Drive Belt",
"price": "2000.0",
"brand": "Gates",
"category": "E-bike drivetrain parts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "13496",
"name": "Trek TAB Belt",
"price": "1600.0",
"brand": "Trek",
"category": "Bike chains",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}