if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SEK",
"impressions": [
{
"id": "48618",
"name": "Powerfly FS+ 8 Gen 4",
"price": "85999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "48617",
"name": "Powerfly FS+ 6 Gen 4",
"price": "69999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40672",
"name": "Powerfly FS 4 Equipped Gen 3",
"price": "64999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "teal_greendark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37006",
"name": "Powerfly FS 7 Gen 3",
"price": "53499.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "tan",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40673",
"name": "Powerfly FS 4 Gen 3",
"price": "48599.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "teal_greendark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "37008",
"name": "Powerfly FS 9 Equipped, Gen 3",
"price": "70499.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35271",
"name": "Powerfly FS 9 Equipped, Gen 2",
"price": "66479.2",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "37007",
"name": "Powerfly FS 4 Equipped, Gen 3",
"price": "58799.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}