if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "35333",
"name": "Domane SL 7 gen 3",
"price": "5669.1",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35303",
"name": "Domane SL 6 gen 3",
"price": "3224.25",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "bluedark_black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}