if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "36969",
"name": "Marlin 8 Gen 3",
"price": "799.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36967",
"name": "Marlin 7 Gen 3",
"price": "649.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluelight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36966",
"name": "Marlin 6 Gen 3",
"price": "499.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "teal",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41217",
"name": "Marlin 7 Gen 3",
"price": "1149.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40773",
"name": "Marlin 5 Gen 3",
"price": "649.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "purple_black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40962",
"name": "Marlin 6 Gen 3",
"price": "899.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "37982",
"name": "Kit cadre Marlin Gen 3",
"price": "649.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}