if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "48470",
"name": "Rail+ 8 Gen 5",
"price": "6849.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "48458",
"name": "Rail+ 5 Gen 5",
"price": "5799.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41527",
"name": "Rail 8 GX AXS T-Type Gen 3",
"price": "6249.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "tealdark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36991",
"name": "Rail 7 Gen 3",
"price": "4999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "purpledark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36990",
"name": "Rail 5 625 W Gen 3",
"price": "4579.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36992",
"name": "Rail 9 Gen 3",
"price": "7809.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35033",
"name": "Rail 5 625 W Gen 2",
"price": "5599.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_greydark",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}