if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "14477",
"name": "Electra Colour Ringer Bike Bell",
"price": "15.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33731",
"name": "Electra Honeycomb Small Strap-Mounted Handlebar Basket",
"price": "79.99",
"brand": "Electra",
"category": "Bike baskets",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}