if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "12641",
"name": "Zestaw chwytów Electra ręcznie szytych długich",
"price": "30.0",
"brand": "Electra",
"category": "Bike handlebar grips & tape",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "14477",
"name": "Dzwonek rowerowy Electra Color",
"price": "27.0",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "12675",
"name": "Taśmy mocujące dla bagażników tylnych Electra",
"price": "26.0",
"brand": "Electra",
"category": "Bike racks",
"variant": "blue_reflective",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35912",
"name": "Mały dzwonek ding dong Electra 101",
"price": "20.0",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "orange",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "12653",
"name": "Trąbka zakręcona Electra",
"price": "18.0",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35932",
"name": "Dzwonek rowerowy obrotowy przedni Electra Peace",
"price": "16.0",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "black_white",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "34399",
"name": "Dzwonek obrotowy Electra Rosette",
"price": "12.0",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "grey",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "34405",
"name": "Dzwonek obrotowy Electra jednolity",
"price": "11.0",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}