if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "28712",
"name": "Domane SL Gen 3 Frameset",
"price": "2199.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "purpledark_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "32692",
"name": "Checkpoint ALR Frameset",
"price": "1179.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "tealdark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "23644",
"name": "Émonda ALR Disc Frameset",
"price": "1149.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_orangelight",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}