if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "47270",
"name": "Verve 3 Equipped",
"price": "4899.0",
"brand": "Trek",
"category": "Verve Equipped",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47271",
"name": "Verve 3 Equipped Lowstep",
"price": "4899.0",
"brand": "Trek",
"category": "Verve Equipped",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40500",
"name": "Verve 3 Equipped",
"price": "5199.0",
"brand": "Trek",
"category": "Verve Equipped",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40501",
"name": "Verve 3 Equipped Lowstep",
"price": "5199.0",
"brand": "Trek",
"category": "Verve Equipped",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}