if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "40888",
"name": "Electra MIK Rear Rack",
"price": "129.99",
"brand": "Electra",
"category": "Bike racks",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "32852",
"name": "Bontrager-Electra MIK Bike Rack Carrier Plate",
"price": "39.99",
"brand": "Bontrager-Electra",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32728",
"name": "Bontrager-Electra MIK Bike Bag Adapter Plate",
"price": "39.99",
"brand": "Bontrager-Electra",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}