if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "34244",
"name": "Kask Electra Unicorn Lifestyle",
"price": "239.0",
"brand": "Electra",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "14508",
"name": "Dzwonek rowerowy Electra Unicorn",
"price": "69.0",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}