if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "37985",
"name": "Opona szosowa Bontrager Aeolus RSL TLR",
"price": "399.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black_tan",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "48770",
"name": "Opona szosowa Pirelli P Zero TLR RS",
"price": "499.0",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "25926",
"name": "Opona szosowa Bontrager R3 Hard-Case Lite TLR",
"price": "319.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "45223",
"name": "Opona szosowa Pirelli P ZERO Race TLR 4S",
"price": "419.0",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "38203",
"name": "Opona szosowa Pirelli Cinturato Velo TLR",
"price": "349.0",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "25275",
"name": "Schwalbe G-One Road Tire",
"price": "380.0",
"brand": "Schwalbe",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}