if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "41532",
"name": "Fuel EXe 5",
"price": "5999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41549",
"name": "Fuel EXe 8 GX AXS T-Type",
"price": "7699.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "tealdark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41654",
"name": "Fuel EXe 9.8 GX AXS T-Type",
"price": "16499.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41525",
"name": "Fuel EXe 9.7",
"price": "12999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36371",
"name": "Fuel EXe 9.9 XTR",
"price": "13499.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36364",
"name": "Fuel EXe 9.5",
"price": "10499.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "36370",
"name": "Fuel EXe 9.8",
"price": "8999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "36426",
"name": "Fuel EXe 9.7",
"price": "7699.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}