if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "41013",
"name": "Wahoo 24 Trail",
"price": "3299.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "green",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40928",
"name": "Wahoo 24 Path",
"price": "2199.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36846",
"name": "Ośmiobiegowy Precaliber 24 z zawieszeniem",
"price": "1599.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36965",
"name": "Precaliber 24 8-biegowy",
"price": "1799.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}