if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NOK",
"impressions": [
{
"id": "47147",
"name": "Trek Adventure rammeveske",
"price": "1499.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "47358",
"name": "Trek Adventure topprørsveske",
"price": "499.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black_greylight",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "47148",
"name": "Trek Adventure trekantet veske",
"price": "899.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}