if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "41479",
"name": "Trek Cargo Bike 6-Bolt Disc 20" Wheel",
"price": "394.99",
"brand": "Trek",
"category": "Bike wheels",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37656",
"name": "Bontrager Connection Ride+ 32H Disc 700c Wheel",
"price": "1699.99",
"brand": "Bontrager",
"category": "E-bike drivetrain parts",
"variant": "black_greydark",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}