if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "31577",
"name": "Bontrager GR2 Gravelradschuh",
"price": "123.99",
"brand": "Bontrager",
"category": "Cyclocross & gravel bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "30212",
"name": "Bontrager Ballista Knit Rennradschuh",
"price": "160.0",
"brand": "Bontrager",
"category": "Road bike shoes",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}