if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "41681",
"name": "Slash 9.9 X0 AXS T-Type Gen 6",
"price": "9999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47280",
"name": "Slash 9.9 X0 AXS T-Type Gen 6",
"price": "9999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37065",
"name": "Slash 9.9 XTR Gen 5",
"price": "10499.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41821",
"name": "Slash 9.9 XTR Gen 6",
"price": "11499.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37060",
"name": "Slash 9.9 XX1 Flight Attendant Gen 5",
"price": "11499.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "47281",
"name": "Slash 9.9 XX AXS T-Type Gen 6",
"price": "12499.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "41689",
"name": "Slash 9.9 XX AXS T-Type Gen 6",
"price": "12499.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}