if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "36265",
"name": "Precaliber 12",
"price": "1199.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "17476",
"name": "Kickster",
"price": "839.25",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}