if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "41426",
"name": "Émonda ALR 5",
"price": "3999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41640",
"name": "Checkpoint ALR 5",
"price": "3799.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "tealdark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41587",
"name": "Domane AL 2 Gen 4",
"price": "1899.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36143",
"name": "Domane+ AL 5",
"price": "5499.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35172",
"name": "Checkpoint ALR 5",
"price": "3799.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "bluedark_red",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}