if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "44369",
"name": "Madone SL Disc Gen 7 Frameset",
"price": "3799.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "reddark",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "49168",
"name": "Madone SLR 8 AXS Gen 8",
"price": "9499.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "37640",
"name": "Fetch+ 2",
"price": "4499.97",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "46151",
"name": "Madone SLR 9 AXS Gen 8",
"price": "13499.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white_blue",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "46707",
"name": "Madone SLR 9 Gen 8",
"price": "12999.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white_blue",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "41013",
"name": "Wahoo 24 Trail",
"price": "699.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "green",
"list": "PRODUCTSEARCH",
"position": 6
}
,
{
"id": "41014",
"name": "Wahoo 20 Trail",
"price": "649.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greenvisibility",
"list": "PRODUCTSEARCH",
"position": 7
}
,
{
"id": "36846",
"name": "Precaliber 24 8-speed Suspension",
"price": "469.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greydark",
"list": "PRODUCTSEARCH",
"position": 8
}
,
{
"id": "36270",
"name": "Precaliber 20",
"price": "329.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 9
}
,
{
"id": "37304",
"name": "Domane RSL Gen 4 Frameset",
"price": "4199.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_blue",
"list": "PRODUCTSEARCH",
"position": 10
}
,
{
"id": "37303",
"name": "Domane SLR Gen 4 Frameset",
"price": "4199.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_grey",
"list": "PRODUCTSEARCH",
"position": 11
}
,
{
"id": "36268",
"name": "Precaliber 20 7-speed",
"price": "399.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 12
}
,
{
"id": "46220",
"name": "Madone SL 7 Gen 8",
"price": "6499.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_purpledark",
"list": "PRODUCTSEARCH",
"position": 13
}
,
{
"id": "46219",
"name": "Madone SL 6 Gen 8",
"price": "5499.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 14
}
,
{
"id": "46221",
"name": "Madone SL 6 AXS Gen 8",
"price": "5999.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 15
}
,
{
"id": "47093",
"name": "Slash+ 9.9 X0 AXS T-Type",
"price": "11999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "PRODUCTSEARCH",
"position": 16
}
,
{
"id": "47094",
"name": "Slash+ 9.7 SLX/XT",
"price": "7999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greendark",
"list": "PRODUCTSEARCH",
"position": 17
}
]
}
});
} else {
console.log("dataLayer");
}