if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "32841",
"name": "Bontrager 13 Gauge Spoke Nipple Pack of 10",
"price": "9.99",
"brand": "Trek",
"category": "Spokes",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "45446",
"name": "Bontrager Aeolus Pro Spoke Nipple Washers",
"price": "22.99",
"brand": "Bontrager",
"category": "Spokes",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33500",
"name": "Bontrager Wheelsystem Alloy ProLock Spoke Nipple Pack of 10",
"price": "39.99",
"brand": "DT Swiss",
"category": "Spokes",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "26980",
"name": "Bontrager Wheelsystem Alloy Spoke Nipple Pack of 10",
"price": "24.99",
"brand": "Alpina",
"category": "Spokes",
"variant": "greylight",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "30046",
"name": "Alpina Locking Hex Head Brass Nipple Pack of 10",
"price": "24.99",
"brand": "Alpina",
"category": "Spokes",
"variant": "greylight",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}