if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "35070",
"name": "Top Fuel 7 Gen 3",
"price": "2189.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35071",
"name": "Top Fuel 5 Gen 3",
"price": "1819.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}