if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "35171",
"name": "Checkpoint SL 7 AXS Gen 2",
"price": "7129.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "blue_grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "26914",
"name": "1120 Frameset",
"price": "999.0",
"brand": "Trek",
"category": "1120",
"variant": "greydark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34200",
"name": "520 Disc Frame Set",
"price": "699.0",
"brand": "Trek",
"category": "520",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}