if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "37018",
"name": "Farley 5",
"price": "8899.0",
"brand": "Trek",
"category": "Fat bikes",
"variant": "tealdark_greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37020",
"name": "Farley 9.6",
"price": "15599.0",
"brand": "Trek",
"category": "Fat bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40735",
"name": "Rama z widelcem Farley AL",
"price": "7799.0",
"brand": "Trek",
"category": "Fat bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "24999",
"name": "Rama z damperem Farley EX",
"price": "14399.0",
"brand": "Trek",
"category": "Fat bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "33744",
"name": "Rama z widelcem Farley AL",
"price": "6039.0",
"brand": "Trek",
"category": "Fat bikes",
"variant": "bluedark_tealdark",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}