if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "23276",
"name": "Bontrager Insta-Mount Adapter",
"price": "14.99",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "13113",
"name": "Bontrager Insta-Mount Stem/Handlebar Phone Mount",
"price": "26.99",
"brand": "Bontrager",
"category": "Phone & tablet accessories",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "11323",
"name": "Bontrager Interchange Digital Combo Sensor",
"price": "109.99",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "12319",
"name": "Bontrager DuoTrap S Digital Sensor",
"price": "109.99",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "33768",
"name": "Electra Reflective Charcoal Phone Bag",
"price": "89.99",
"brand": "Electra",
"category": "Phone & tablet accessories",
"variant": "reflective",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "47334",
"name": "Rapha Rainproof Essentials Case",
"price": "70.0",
"brand": "Rapha",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}