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