if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "48109",
"name": "Trek BackRack Deluxe MIK Studs Rear Rack",
"price": "139.99",
"brand": "Trek",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "86481",
"name": "Trek-Diamant 2027 Inbound+/District+ MIK HD Rear Rack",
"price": "129.99",
"brand": "Trek-Diamant",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}