if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "57020",
"name": "T-shirt monochromatyczny Trek",
"price": "129.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "90408",
"name": "Trek White/Dark Logo Pro Sweatshirt",
"price": "299.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "greendark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "90410",
"name": "Trek Classic Logo Pro Collar Polo",
"price": "239.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "90406",
"name": "Trek Dark/Dark Logo Pro T-Shirt",
"price": "139.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "81631",
"name": "T-shirt męski z logo Rapha",
"price": "235.0",
"brand": "Rapha",
"category": "T-Shirts",
"variant": "black_white",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "80796",
"name": "T-shirt grupy Fox Racing Trek x Unbroken",
"price": "139.0",
"brand": "Fox Racing",
"category": "T-Shirts",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}