if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NOK",
"impressions": [
{
"id": "31867",
"name": "Trek Head Tube Square Plug - Pack of 4",
"price": "85.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "45160",
"name": "Trek Fetch+ 2 Family Pack Seat Base Mount Bracket",
"price": "70.0",
"brand": "Trek",
"category": "Bike trailers & child seats",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "31810",
"name": "Trek X-Caliber 2018 Front Derailleur Washer Pack of 10",
"price": "239.0",
"brand": "Trek",
"category": "Bike derailleurs",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "40418",
"name": "C-Star Hydraulic Brake Olives and Barbs - Pack of 10",
"price": "219.0",
"brand": "C-Star",
"category": "Bike brakes, pads, & levers",
"variant": "gold",
"list": "PRODUCTSEARCH",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}