if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "32735",
"name": "Verve 2 Disc Gen 4",
"price": "949.0",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33491",
"name": "Roscoe 24",
"price": "849.0",
"brand": "Trek",
"category": "Kids' mountain bikes",
"variant": "reddark_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35060",
"name": "Dual Sport 1 Gen 4",
"price": "849.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "32737",
"name": "Verve 1 Disc",
"price": "799.0",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "28592",
"name": "Precaliber 24 8-speed Suspension",
"price": "539.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pinkdark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "28589",
"name": "Precaliber 24 8-speed Suspension",
"price": "539.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "17476",
"name": "Kickster",
"price": "289.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}