if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "14730",
"name": "Kask Electra Lifestyle Lux Cool Cat",
"price": "319.0",
"brand": "Electra",
"category": "Bike helmets",
"variant": "pink",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "14514",
"name": "Dzwonek rowerowy Electra Cool Cat",
"price": "69.0",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "pink",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}