if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "26789",
"name": "Bontrager Blaze WaveCel LTD Mountain Bike Helmet",
"price": "399.95",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "purple_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "21799",
"name": "Bontrager Rally Mips Mountain Bike Helmet",
"price": "249.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "21812",
"name": "Bontrager Solstice Mips Bike Helmet",
"price": "119.95",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "45107",
"name": "Trek Rally WaveCel Mountain Bike Helmet",
"price": "279.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "tan_black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36026",
"name": "Trek Solstice Mips Bike Helmet",
"price": "129.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36029",
"name": "Trek Solstice Bike Helmet",
"price": "79.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}