if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "26261",
"name": "VP Components FP-F501 1" Threaded Headset",
"price": "4.99",
"brand": "Trek",
"category": "Bike headsets",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "36494",
"name": "Unior 1/4˝ Drive Long Socket",
"price": "4.99",
"brand": "Unior",
"category": "Bike tools & maintenance",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "36496",
"name": "Unior 1/2˝ Drive Socket",
"price": "4.99",
"brand": "Unior",
"category": "Bike tools & maintenance",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "36503",
"name": "Unior 1/4˝ Drive Hex Bit",
"price": "2.99",
"brand": "Unior",
"category": "Bike tools & maintenance",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "36499",
"name": "Unior 1/4˝ Drive Torx Bit",
"price": "2.99",
"brand": "Unior",
"category": "Bike tools & maintenance",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "36495",
"name": "Unior 1/4˝ Drive Socket",
"price": "1.99",
"brand": "Unior",
"category": "Bike tools & maintenance",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}