if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "41613",
"name": "Marlin 4 Gen 2",
"price": "559.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "34587",
"name": "Marlin 5 Gen 2",
"price": "609.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35866",
"name": "Kit telaio Marlin Frameset Gen 2",
"price": "354.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_blue",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}