if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "21995",
"name": "920 frameset",
"price": "1249.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "tan",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35668",
"name": "Checkpoint ALR Gen 2 frameset",
"price": "1199.0",
"brand": "Trek",
"category": "Checkpoint",
"variant": "reddark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35664",
"name": "Crockett Disc frameset",
"price": "1199.0",
"brand": "Trek",
"category": "Cyclocross bikes",
"variant": "red_tealdark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "30189",
"name": "Émonda SL frameset",
"price": "999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "23613",
"name": "Émonda ALR frameset",
"price": "999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_orangelight",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "57659",
"name": "Checkpoint ALR frameset",
"price": "699.0",
"brand": "Trek",
"category": "Checkpoint",
"variant": "bronze",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}