if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "47341",
"name": "Rapha Lightweight Short Sleeve Cycling Baselayer",
"price": "115.0",
"brand": "Rapha",
"category": "Men's cycling baselayers",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47357",
"name": "Rapha Lightweight Short Sleeve Women's Baselayer",
"price": "115.0",
"brand": "Rapha",
"category": "Women's cycling baselayers",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}