if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "41013",
"name": "Wahoo 24 Trail",
"price": "3499.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "green",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41014",
"name": "Wahoo 20 Trail",
"price": "3399.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greenvisibility",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33490",
"name": "Roscoe 20",
"price": "2519.0",
"brand": "Trek",
"category": "Kids' mountain bikes",
"variant": "reddark_black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}