if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "35559",
"name": "Bontrager Adventure Handlebar Bag",
"price": "249.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "24466",
"name": "Bontrager Kids Handlebar Bag",
"price": "54.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "25928",
"name": "Bontrager Interchange Handlebar Bracket 31.8 Clamps",
"price": "9.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "47332",
"name": "Rapha Bar Bag",
"price": "120.0",
"brand": "Rapha",
"category": "Bike bags",
"variant": "black_greydark",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}