if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "44891",
"name": "Okulary przeciwsłoneczne z soczewkami HiPER 100% Trek Team Edition Speedcraft",
"price": "799.0",
"brand": "100%",
"category": "Cycling glasses",
"variant": "blue_red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44892",
"name": "Okulary przeciwsłoneczne z soczewkami HiPER 100% Trek Team Edition S3",
"price": "799.0",
"brand": "100%",
"category": "Cycling glasses",
"variant": "blue_red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "45021",
"name": "5-panelowa czapka w barwach Trek Factory Racing",
"price": "179.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "45022",
"name": "Czapka z pomponem w barwach Trek Factory Racing",
"price": "149.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}