if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "37114",
"name": "Fetch+ 4",
"price": "6999.97",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "41561",
"name": "Rail 8 GX AXS T-Type Gen 3",
"price": "6299.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "36792",
"name": "Rail 7 Gen 3",
"price": "4499.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "purpledark",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "16705",
"name": "Fuel EX 27.5 Alloy Frameset",
"price": "599.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "41986",
"name": "Rail 9.9 X0 AXS T-Type Gen 4",
"price": "11299.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "41661",
"name": "Powerfly FS 9 Equipped Gen 3",
"price": "6499.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_red",
"list": "PRODUCTSEARCH",
"position": 6
}
,
{
"id": "41666",
"name": "Rail 9.8 GX AXS T-Type Gen 4",
"price": "8199.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "PRODUCTSEARCH",
"position": 7
}
,
{
"id": "35678",
"name": "Rail 9.9 XX1 AXS Gen 3",
"price": "6999.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "PRODUCTSEARCH",
"position": 8
}
,
{
"id": "35676",
"name": "Rail 9.9 XTR Gen 3",
"price": "6299.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "PRODUCTSEARCH",
"position": 9
}
,
{
"id": "35680",
"name": "Rail 9.8 GX AXS Gen 3",
"price": "5499.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_black",
"list": "PRODUCTSEARCH",
"position": 10
}
,
{
"id": "37026",
"name": "Rail 9.7 Gen 4",
"price": "5199.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "PRODUCTSEARCH",
"position": 11
}
,
{
"id": "36998",
"name": "Powerfly FS 4 Gen 3",
"price": "4749.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_black",
"list": "PRODUCTSEARCH",
"position": 12
}
,
{
"id": "35672",
"name": "Rail 9.8 XT Gen 3",
"price": "4399.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "PRODUCTSEARCH",
"position": 13
}
,
{
"id": "35682",
"name": "Rail 9.8 GX Gen 3",
"price": "4399.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "PRODUCTSEARCH",
"position": 14
}
,
{
"id": "46692",
"name": "Checkmate SLR 7 AXS",
"price": "8299.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "greendark_greenlight",
"list": "PRODUCTSEARCH",
"position": 15
}
,
{
"id": "49169",
"name": "Checkmate SLR 8 AXS",
"price": "8299.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "greendark_greenlight",
"list": "PRODUCTSEARCH",
"position": 16
}
,
{
"id": "37029",
"name": "Rail 9.8 GX AXS Gen 4",
"price": "6999.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 17
}
,
{
"id": "37069",
"name": "Powerfly FS 9 Equipped Gen 3",
"price": "5499.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_black",
"list": "PRODUCTSEARCH",
"position": 18
}
,
{
"id": "46152",
"name": "Checkmate SLR 9 AXS",
"price": "11999.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "greendark_greenlight",
"list": "PRODUCTSEARCH",
"position": 19
}
,
{
"id": "37358",
"name": "Domane SLR 9 AXS Gen 4",
"price": "9999.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_blue",
"list": "PRODUCTSEARCH",
"position": 20
}
,
{
"id": "46688",
"name": "Madone SLR 7 AXS Gen 8",
"price": "9499.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white_blue",
"list": "PRODUCTSEARCH",
"position": 21
}
,
{
"id": "46687",
"name": "Madone SLR 7 Gen 8",
"price": "8999.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white_blue",
"list": "PRODUCTSEARCH",
"position": 22
}
,
{
"id": "44369",
"name": "Madone SL Disc Gen 7 Frameset",
"price": "3799.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "reddark",
"list": "PRODUCTSEARCH",
"position": 23
}
,
{
"id": "49168",
"name": "Madone SLR 8 AXS Gen 8",
"price": "9499.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue",
"list": "PRODUCTSEARCH",
"position": 24
}
,
{
"id": "46151",
"name": "Madone SLR 9 AXS Gen 8",
"price": "13499.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white_blue",
"list": "PRODUCTSEARCH",
"position": 25
}
,
{
"id": "46707",
"name": "Madone SLR 9 Gen 8",
"price": "12999.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white_blue",
"list": "PRODUCTSEARCH",
"position": 26
}
,
{
"id": "36846",
"name": "Precaliber 24 8-speed Suspension",
"price": "469.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greydark",
"list": "PRODUCTSEARCH",
"position": 27
}
,
{
"id": "36270",
"name": "Precaliber 20",
"price": "329.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 28
}
,
{
"id": "37304",
"name": "Domane RSL Gen 4 Frameset",
"price": "4199.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_blue",
"list": "PRODUCTSEARCH",
"position": 29
}
,
{
"id": "37303",
"name": "Domane SLR Gen 4 Frameset",
"price": "4199.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_grey",
"list": "PRODUCTSEARCH",
"position": 30
}
,
{
"id": "36268",
"name": "Precaliber 20 7-speed",
"price": "399.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 31
}
,
{
"id": "46220",
"name": "Madone SL 7 Gen 8",
"price": "6499.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_purpledark",
"list": "PRODUCTSEARCH",
"position": 32
}
,
{
"id": "46219",
"name": "Madone SL 6 Gen 8",
"price": "5499.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 33
}
,
{
"id": "46221",
"name": "Madone SL 6 AXS Gen 8",
"price": "5999.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 34
}
,
{
"id": "47093",
"name": "Slash+ 9.9 X0 AXS T-Type",
"price": "11999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "PRODUCTSEARCH",
"position": 35
}
,
{
"id": "47094",
"name": "Slash+ 9.7 SLX/XT",
"price": "7999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greendark",
"list": "PRODUCTSEARCH",
"position": 36
}
]
}
});
} else {
console.log("dataLayer");
}