if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "34652",
"name": "Trek Circuit Women's LTD Cycling Jersey",
"price": "950.0",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "greydark_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "14965",
"name": "Bontrager Meraj Women's Cycling Jersey",
"price": "1200.0",
"brand": "Bontrager",
"category": "Road bike jerseys",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}