if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "41771",
"name": "Electra Loft Go! 7D Internal Cable Guide",
"price": "3.99",
"brand": "Electra",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "42283",
"name": "Electra Cable Routing Grommet",
"price": "3.99",
"brand": "Electra",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}