if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "48293",
"name": "Trek Men's Race Fit Jersey",
"price": "1499.0",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "green",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "48295",
"name": "Trek Men's Elite Jersey",
"price": "1999.0",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "grey_red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34650",
"name": "Trek Circuit LTD Cycling Jersey",
"price": "750.0",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "greydark_black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}