if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "23382",
"name": "Bontrager Entfetter",
"price": "19.99",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "white",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "23383",
"name": "Bontrager Fahrradreiniger",
"price": "14.99",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}