if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "30495",
"name": "Ticket S -runkosarja",
"price": "2079.0",
"brand": "Trek",
"category": "Downhill mountain bikes",
"variant": "greendark",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "29757",
"name": "Ticket DJ -runkosarja",
"price": "1089.0",
"brand": "Trek",
"category": "Downhill mountain bikes",
"variant": "greendark",
"list": "PRODUCTSEARCH",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}