if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "31929",
"name": "Allant+ 7S",
"price": "2299.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "28299",
"name": "Verve+ 2 Gen 2",
"price": "1699.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35843",
"name": "FX+ 2 Stagger",
"price": "1599.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35021",
"name": "FX 3 Disc Gen 3",
"price": "679.93",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36823",
"name": "Dual Sport 2 Gen 5",
"price": "599.93",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "32733",
"name": "Verve 3 Disc Gen 4",
"price": "549.93",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "32732",
"name": "Verve 3 Disc Lowstep Gen 4",
"price": "549.93",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "purple",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "36454",
"name": "Verve 2 Lowstep Gen 4",
"price": "529.93",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "35004",
"name": "FX 2 Disc Mid-step Gen 3",
"price": "529.93",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "36811",
"name": "Verve 1 Disc Gen 4",
"price": "449.99",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "32734",
"name": "Verve 2 Disc Lowstep Gen 4",
"price": "449.93",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "red",
"list": "CATEGORY",
"position": 11
}
,
{
"id": "36450",
"name": "Verve 1 Lowstep Gen 4",
"price": "449.93",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "red",
"list": "CATEGORY",
"position": 12
}
,
{
"id": "32735",
"name": "Verve 2 Disc Gen 4",
"price": "449.93",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "red",
"list": "CATEGORY",
"position": 13
}
,
{
"id": "35001",
"name": "FX 1 Disc Gen 3",
"price": "449.93",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 14
}
,
{
"id": "32737",
"name": "Verve 1 Disc Gen 4",
"price": "349.93",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 15
}
,
{
"id": "32736",
"name": "Verve 1 Disc Lowstep Gen 4",
"price": "349.93",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "white",
"list": "CATEGORY",
"position": 16
}
]
}
});
} else {
console.log("dataLayer");
}