if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "40927",
"name": "Wahoo 20 Path",
"price": "1999.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41013",
"name": "Wahoo 24 Trail",
"price": "3299.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "green",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41014",
"name": "Wahoo 20 Trail",
"price": "3299.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greenvisibility",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40929",
"name": "Wahoo 26 Path",
"price": "2399.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40928",
"name": "Wahoo 24 Path",
"price": "2199.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}