if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "07799",
"name": "Bontrager Tire Lever Set",
"price": "19.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41411",
"name": "Narzędzie wielofunkcyjne Trek Pro BITS",
"price": "349.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "44751",
"name": "Narzędzie wielofunkcyjne Trek Elite BITS",
"price": "219.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "14957",
"name": "Narzędzie do kolców Bontrager Gnarwhal",
"price": "59.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "42298",
"name": "Zestaw łatek do dętki Pirelli SmarTUBE",
"price": "29.0",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "yellow",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}