if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "41613",
"name": "Marlin 4 Gen 2",
"price": "2499.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "34587",
"name": "Marlin 5 Gen 2",
"price": "3099.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35866",
"name": "Rama Marlin generacji 2",
"price": "1719.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_blue",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}