if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "40345",
"name": "Unior Single-Speed Chain Whip",
"price": "49.99",
"brand": "Unior",
"category": "Bike tools & maintenance",
"variant": "greylight_red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "26742",
"name": "Unior Madone SLR Extended Bit for Seatpost 3-pack",
"price": "37.99",
"brand": "Unior",
"category": "Bike tools & maintenance",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36472",
"name": "Unior Pro Socket Handle",
"price": "29.99",
"brand": "Unior",
"category": "Bike tools & maintenance",
"variant": "greylight_red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "14716",
"name": "Unior T-Handle Torx Wrenches",
"price": "16.99",
"brand": "Unior",
"category": "Bike tools & maintenance",
"variant": "red_orange",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "14195",
"name": "Unior Philips Screwdriver",
"price": "11.99",
"brand": "Unior",
"category": "Bike tools & maintenance",
"variant": "red",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}