if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "40826",
"name": "Dual Sport 3 Gen 5",
"price": "1649.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36391",
"name": "Dual Sport+ 2 Stagger",
"price": "3899.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36390",
"name": "Dual Sport+ 2",
"price": "3899.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36823",
"name": "Dual Sport 2 Gen 5",
"price": "1249.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36824",
"name": "Dual Sport 1 Gen 5",
"price": "1049.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}