if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "10652",
"name": "Trek 16" Kids Training Wheels",
"price": "130.0",
"brand": "Bontrager",
"category": "Bike training wheels",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "14986",
"name": "Bontrager/Electra Training Wheel Hardware",
"price": "49.9",
"brand": "Trek-Electra",
"category": "Bike training wheels",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}