if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "34200",
"name": "Kit cadre 520 Disque",
"price": "669.0",
"brand": "Trek",
"category": "520",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "28470",
"name": "Kit cadre X-Caliber",
"price": "449.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35866",
"name": "Kit cadre Marlin Gen 2",
"price": "344.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_blue",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}