if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "35147",
"name": "Supercaliber 9.8 GX Gen 1",
"price": "6699.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "yellowvisibility_pinkdark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35869",
"name": "Cuadro Supercaliber Gen 1",
"price": "4799.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greydark_black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}