if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "35214",
"name": "Rama Remedy 27.5 C",
"price": "22399.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
]
}
});
} else {
console.log("dataLayer");
}