if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "47225",
"name": "Trek BITS Tool Bag",
"price": "59.99",
"brand": "Trek",
"category": "Bike bags",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47226",
"name": "Trek BITS Tube Bag",
"price": "49.99",
"brand": "Trek",
"category": "Bike bags",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "45082",
"name": "Trek Waterproof Buckled NIP Bag",
"price": "29.99",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "34744",
"name": "Bontrager Rapid Pack Hydro",
"price": "219.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "14798",
"name": "Bontrager Rapid Pack",
"price": "139.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "31819",
"name": "Bontrager Pro Pocket Case",
"price": "54.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "26634",
"name": "Bontrager BITS Internal Frame Storage Bag",
"price": "44.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "22453",
"name": "Bontrager 18oz Storage Bottle",
"price": "18.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black_white",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "47334",
"name": "Rapha Rainproof Essentials Case",
"price": "70.0",
"brand": "Rapha",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}