if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "47218",
"name": "Domane+ AL 5",
"price": "2989.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36141",
"name": "Domane+ AL 5",
"price": "2989.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}