if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "07799",
"name": "Bontrager Tire Lever Set",
"price": "7.99",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41411",
"name": "Trek Pro BITS Multi-Tool",
"price": "159.99",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "44751",
"name": "Trek Elite BITS Multi-Tool",
"price": "119.99",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "42298",
"name": "Pirelli SmarTUBE Inner Tube Patch Kit",
"price": "11.49",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "yellow",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}