if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "37114",
"name": "Fetch+ 4",
"price": "4999.97",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37640",
"name": "Fetch+ 2",
"price": "2999.97",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40990",
"name": "Verve+ 1 Lowstep LT",
"price": "1999.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36841",
"name": "Verve+ 4S Lowstep Gen 2",
"price": "1999.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35003",
"name": "FX 2 Disc Gen 3",
"price": "449.93",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "32734",
"name": "Verve 2 Disc Lowstep Gen 4",
"price": "349.93",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "red",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35273",
"name": "Townie Go! 7D Step-Thru",
"price": "1199.93",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "36415",
"name": "Loft Go! 7D EQ Step-Thru",
"price": "1199.93",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "pinklight",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "35207",
"name": "Cruiser Go! Step-Thru",
"price": "899.93",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "orangelight",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}