if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "14227",
"name": "Bontrager Bike Helmet Buckle",
"price": "7.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "11199",
"name": "Bontrager Lockdown Bike Helmet Strap Divider",
"price": "6.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "25382",
"name": "Bontrager-Electra Fidlock SNAP Helmet Buckle",
"price": "12.99",
"brand": "Bontrager-Electra",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}