if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "41478",
"name": "Fuel EXe 8 GX AXS T-Type",
"price": "5969.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "tealdark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41503",
"name": "Fuel EXe 8 XT",
"price": "5339.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41371",
"name": "Fuel EXe 5",
"price": "4449.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}