if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "30495",
"name": "Rama z damperem Ticket S",
"price": "10399.0",
"brand": "Trek",
"category": "Downhill mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "29757",
"name": "Rama Ticket DJ",
"price": "5499.0",
"brand": "Trek",
"category": "Downhill mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}