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": "28300",
"name": "Verve+ 2 Lowstep Gen 2",
"price": "3799.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36791",
"name": "Rail 5 Gen 3",
"price": "7399.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35032",
"name": "Rail 5 Gen 2",
"price": "7399.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_greydark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36998",
"name": "Powerfly FS 4 Gen 3",
"price": "5999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "32759",
"name": "Powerfly FS 4 Gen 2",
"price": "5999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "32844",
"name": "Powerfly 4 Gen 3",
"price": "4999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35855",
"name": "Dual Sport+ 2 Stagger",
"price": "3199.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "35854",
"name": "Dual Sport+ 2",
"price": "3199.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "30915",
"name": "Domane+ LT Gen 1",
"price": "7899.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}