if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "37110",
"name": "Trek Evoke Youth Unisex Mountain Bike Glove",
"price": "550.0",
"brand": "Trek",
"category": "Kids' bike gloves",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "22489",
"name": "Bontrager Kids' Bike Glove",
"price": "320.0",
"brand": "Bontrager",
"category": "Fingerless cycling gloves",
"variant": "black_grey",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}