if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "35003",
"name": "FX 2 Disc Gen 3",
"price": "713.99",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40810",
"name": "Verve 2 Lowstep Gen 5",
"price": "1199.99",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40905",
"name": "Dual Sport+ 2 LT",
"price": "3359.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40826",
"name": "Dual Sport 3 Gen 5",
"price": "1599.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40824",
"name": "Dual Sport 2 Gen 5",
"price": "1299.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40823",
"name": "Dual Sport 1 Gen 5",
"price": "1069.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "28299",
"name": "Verve+ 2 Gen 2",
"price": "3799.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35854",
"name": "Dual Sport+ 2",
"price": "3199.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "36826",
"name": "Dual Sport 3 Gen 5",
"price": "1279.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "35104",
"name": "Dual Sport 3 Gen 4",
"price": "1199.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "black",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "35021",
"name": "FX 3 Disc Gen 3",
"price": "1007.99",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 11
}
,
{
"id": "36823",
"name": "Dual Sport 2 Gen 5",
"price": "991.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "CATEGORY",
"position": 12
}
,
{
"id": "35044",
"name": "Dual Sport 2 Gen 4",
"price": "919.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 13
}
,
{
"id": "36453",
"name": "Verve 2 Gen 4",
"price": "871.99",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "black",
"list": "CATEGORY",
"position": 14
}
,
{
"id": "36824",
"name": "Dual Sport 1 Gen 5",
"price": "855.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 15
}
,
{
"id": "35060",
"name": "Dual Sport 1 Gen 4",
"price": "791.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "greylight",
"list": "CATEGORY",
"position": 16
}
,
{
"id": "36811",
"name": "Verve 1 Disc Gen 4",
"price": "719.99",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 17
}
]
}
});
} else {
console.log("dataLayer");
}