if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "37085",
"name": "Trek Evoke Women's Mountain Bike Shorts",
"price": "239.99",
"brand": "Trek",
"category": "Mountain bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41150",
"name": "Trek Rhythm Women's Mountain Bike Shorts",
"price": "179.99",
"brand": "Trek",
"category": "Mountain bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "45107",
"name": "Trek Rally WaveCel Mountain Bike Helmet",
"price": "279.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "tan_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": "41743",
"name": "Trek Circuit Waterproof Winter Cycling Gloves",
"price": "119.99",
"brand": "Trek",
"category": "Men's cycling gloves",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "41744",
"name": "Trek Circuit Windshell Cycling Gloves",
"price": "99.99",
"brand": "Trek",
"category": "Men's cycling gloves",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "37098",
"name": "Trek Circuit Full-Finger Twin Gel Unisex Cycling Glove",
"price": "89.99",
"brand": "Trek",
"category": "Full finger cycling gloves",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "36029",
"name": "Trek Solstice Bike Helmet",
"price": "79.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "41745",
"name": "Trek Circuit Thermal Cycling Gloves",
"price": "79.99",
"brand": "Trek",
"category": "Men's cycling gloves",
"variant": "black",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "37106",
"name": "Trek Evoke Unisex Mountain Bike Glove",
"price": "69.99",
"brand": "Trek",
"category": "Women's cycling gloves",
"variant": "black",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "31566",
"name": "Bontrager Rally WaveCel Mountain Bike Helmet",
"price": "259.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}