if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "34036",
"name": "Trek Commuter Comp R Flare R City Bike Light Set",
"price": "189.99",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "30763",
"name": "Bontrager Ion Comp R/Flare R City Bike Light Set",
"price": "229.99",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "14259",
"name": "Bontrager Ion 100 R/Flare R City Bike Light Set",
"price": "114.99",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "44447",
"name": "Trek Ion 50 R Flare R Metro Bike Light Set",
"price": "64.99",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "41443",
"name": "Trek Ion 100 R/Flare R City Bike Light Set",
"price": "114.99",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "32356",
"name": "Bontrager Ion 120/Flare 1 Light Set",
"price": "79.99",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}