if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "28299",
"name": "Verve+ 2 Gen 2",
"price": "3799.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36791",
"name": "Rail 5 Gen 3",
"price": "7399.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35032",
"name": "Rail 5 Gen 2",
"price": "7399.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_greydark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "32844",
"name": "Powerfly 4 Gen 3",
"price": "3499.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35854",
"name": "Dual Sport+ 2",
"price": "3199.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "30915",
"name": "Domane+ LT Gen 1",
"price": "7899.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}