if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "41352",
"name": "Émonda SL 6",
"price": "6239.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36980",
"name": "Madone SL 7 AXS Gen 6",
"price": "9655.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36959",
"name": "Madone SL 6 Di2 Gen 6",
"price": "7899.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36958",
"name": "Émonda SL 6 Di2",
"price": "5839.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "32561",
"name": "Émonda SL 6 Disc",
"price": "4949.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_red",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36974",
"name": "Émonda SL 5",
"price": "4359.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "36149",
"name": "Domane SL 5 Gen 4",
"price": "4199.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "33086",
"name": "Domane AL 5 Gen 3",
"price": "2699.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey_red",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "33078",
"name": "Émonda ALR 4",
"price": "2359.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}