if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SEK",
"impressions": [
{
"id": "40813",
"name": "FX 1 Gen 4",
"price": "7299.0",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "24531",
"name": "Loft 7D EQ Step-Thru",
"price": "6499.0",
"brand": "Electra",
"category": "Loft",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32769",
"name": "FX 1 Gen 3",
"price": "4899.0",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35054",
"name": "Verve+ 2 Lowstep Gen 2",
"price": "30199.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "33179",
"name": "Ace of Spades Go! 5i",
"price": "29399.0",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35025",
"name": "Verve+ 1 Lowstep",
"price": "25499.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}