if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "40676",
"name": "Verve+ 4S",
"price": "4999.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40677",
"name": "Verve+ 4S Lowstep",
"price": "4999.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37653",
"name": "Fetch+ 2",
"price": "8999.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36391",
"name": "Dual Sport+ 2 Stagger",
"price": "3899.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36390",
"name": "Dual Sport+ 2",
"price": "3899.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}