if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "41640",
"name": "Checkpoint ALR 5",
"price": "47000.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "tealdark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41513",
"name": "Checkpoint ALR 4",
"price": "37000.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}