if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "45162",
"name": "Trek Fetch+ 2 Family Pack Back Rest Pad",
"price": "34.99",
"brand": "Trek",
"category": "Bike trailers & child seats",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "45160",
"name": "Trek Fetch+ 2 Family Pack Seat Base Mount Bracket",
"price": "6.99",
"brand": "Trek",
"category": "Bike trailers & child seats",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "40418",
"name": "C-Star Hydraulic Brake Olives and Barbs - Pack of 10",
"price": "19.99",
"brand": "C-Star",
"category": "Bike brakes, pads, & levers",
"variant": "gold",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "31810",
"name": "Trek X-Caliber 2018 Front Derailleur Washer Pack of 10",
"price": "19.99",
"brand": "Trek",
"category": "Bike derailleurs",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}