if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "34901",
"name": "Townie Commute Go! 5i Step-Thru",
"price": "2599.0",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "34900",
"name": "Townie Commute Go! 5i EQ Step-Over",
"price": "2599.0",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}