if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "34332",
"name": "Kask Electra Gnome Lifestyle Lux",
"price": "199.5",
"brand": "Electra",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35706",
"name": "Siodełko ze sprężynami elastomerowymi Electra Gnome",
"price": "124.5",
"brand": "Electra",
"category": "Bike saddles",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35710",
"name": "Chwyty gumowe Electra Gnome",
"price": "59.5",
"brand": "Electra",
"category": "Bike handlebar grips & tape",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35894",
"name": "Electra Gnome Handlebar Bag",
"price": "57.0",
"brand": "Electra",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "34483",
"name": "Electra Gnome Ringer Bike Bell",
"price": "34.5",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}