if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "40515",
"name": "Verve+ 2 Gen 3",
"price": "14299.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40516",
"name": "Verve+ 2 o niskim przekroku Gen 3",
"price": "14299.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40517",
"name": "Verve+ 1 z niskim przekrokiem",
"price": "11599.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}