if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "36967",
"name": "Marlin 7 generacji 3",
"price": "3299.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluelight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41217",
"name": "Marlin 7 Gen 3",
"price": "4999.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40773",
"name": "Marlin 5 Gen 3",
"price": "2899.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "purple_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40962",
"name": "Marlin 6 Gen 3",
"price": "3999.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37982",
"name": "Rama z widelcem Marlin generacji 3",
"price": "3399.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}