if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "DKK",
"impressions": [
{
"id": "24302",
"name": "Trek MTB Low Direct Mount forskifterbeslag",
"price": "119.0",
"brand": "Trek",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "27639",
"name": "Trek 2017 MTB Low Direct Mount Front Derailleur Plate",
"price": "90.0",
"brand": "Trek",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "27640",
"name": "Trek 2016 Top Fuel 29 1x Low Direct Mount Front Derailleur Nut",
"price": "75.0",
"brand": "Trek",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "24306",
"name": "Trek Madone buet forskifterskive",
"price": "35.0",
"brand": "Trek",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "36647",
"name": "Bontrager ABP Convert Socket",
"price": "119.0",
"brand": "Lee Chi",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}