if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"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": 1
}
,
{
"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": 2
}
,
{
"id": "36071",
"name": "Bontrager AW3 Hard-Case Lite Reflective Road Tyre",
"price": "99.99",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black_reflective",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "32356",
"name": "Bontrager Ion 120/Flare 1 Light Set",
"price": "79.99",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}