if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "34590",
"name": "Trek Velocis Mips Road Bike Helmet",
"price": "499.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37125",
"name": "Trek Ballista Mips Road Bike Helmet",
"price": "359.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40251",
"name": "Trek Circuit WaveCel Helmet",
"price": "299.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "red_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36026",
"name": "Trek Solstice Mips Bike Helmet",
"price": "129.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36029",
"name": "Trek Solstice Bike Helmet",
"price": "79.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "34593",
"name": "Bontrager Circuit WaveCel Road Bike Helmet",
"price": "269.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "21812",
"name": "Bontrager Solstice Mips Bike Helmet",
"price": "119.95",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}