if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "36098",
"name": "Trek Fetch+ 2 Family Pack Kit",
"price": "599.99",
"brand": "Trek",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36097",
"name": "Trek Fetch+ 2 Rear Pannier Kit",
"price": "249.99",
"brand": "Trek",
"category": "Bike baskets",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36099",
"name": "Trek Fetch+ 2 Front Pannier and Rack Kit",
"price": "249.99",
"brand": "Trek",
"category": "Bike baskets",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}