if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "34613",
"name": "Trek Solstice Mips Children's Bike Helmet",
"price": "129.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "pink",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36033",
"name": "Trek Solstice Mips Youth Bike Helmet",
"price": "129.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "pink",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36950",
"name": "Trek Starvos WaveCel Cycling Helmet",
"price": "219.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "31560",
"name": "Bontrager Jet WaveCel Youth Bike Helmet",
"price": "179.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "white_bluelight",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "31557",
"name": "Bontrager Jet WaveCel Children's Bike Helmet",
"price": "179.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "pinkdark_purplelight",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "30487",
"name": "Bontrager Tyro Children's Bike Helmet",
"price": "99.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "blue",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "42202",
"name": "Trek Tyro Children’s Bike Helmet",
"price": "89.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "pinklight_pink",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "42205",
"name": "Trek Tyro Youth Bike Helmet",
"price": "89.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "pinklight_pink",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "40380",
"name": "Trek Little Dipper Children’s Bike Helmet",
"price": "89.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "pink",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}