if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SEK",
"impressions": [
{
"id": "30181",
"name": "Procaliber SL ramset Gen 1",
"price": "30599.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "38642",
"name": "Remedy AL ramset",
"price": "29399.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "yellow_red",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "47249",
"name": "Fuel EX 9.9 XX AXS T-typ Gen 6",
"price": "147199.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black_purple",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "36969",
"name": "Marlin 8, Gen 3",
"price": "9699.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "41645",
"name": "Fuel EX 9.9 XX AXS T-typ Gen 6",
"price": "147999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "41576",
"name": "Fuel EX 9.9 X0 AXS T-typ Gen 6",
"price": "116999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}