if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "46766",
"name": "Madone SL Gen 8 frameset",
"price": "2999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
]
}
});
} else {
console.log("dataLayer");
}