if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "41021",
"name": "Allant+ 7 Lowstep Gen 2",
"price": "4129.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41022",
"name": "Allant+ 7 Mid-step Gen 2",
"price": "4129.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41029",
"name": "Allant+ 7 Gen 2",
"price": "4129.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36936",
"name": "Allant+ 9",
"price": "5169.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37603",
"name": "Allant+ 9 Lowstep",
"price": "5169.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36933",
"name": "Allant+ 7 Stagger",
"price": "3299.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "36931",
"name": "Allant+ 7",
"price": "3299.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}