if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "37479",
"name": "Service Electric",
"price": "4799.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "30266",
"name": "Allant+ 8S Stagger",
"price": "3199.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "greydark",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "31930",
"name": "Allant+ 7S Stagger",
"price": "2999.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "31929",
"name": "Allant+ 7S",
"price": "2999.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "30918",
"name": "Allant+ 7",
"price": "2799.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "bluedark",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "33140",
"name": "Émonda SLR 9 AXS",
"price": "9999.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 6
}
,
{
"id": "30265",
"name": "Allant+ 8S",
"price": "3199.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "greydark",
"list": "PRODUCTSEARCH",
"position": 7
}
,
{
"id": "37114",
"name": "Fetch+ 4",
"price": "7499.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 8
}
,
{
"id": "16705",
"name": "Fuel EX 27.5 Alloy Frameset",
"price": "599.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 9
}
,
{
"id": "46692",
"name": "Checkmate SLR 7 AXS",
"price": "8299.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "greendark_greenlight",
"list": "PRODUCTSEARCH",
"position": 10
}
,
{
"id": "46152",
"name": "Checkmate SLR 9 AXS",
"price": "11999.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "greendark_greenlight",
"list": "PRODUCTSEARCH",
"position": 11
}
,
{
"id": "37640",
"name": "Fetch+ 2",
"price": "4999.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 12
}
,
{
"id": "41013",
"name": "Wahoo 24 Trail",
"price": "699.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "green",
"list": "PRODUCTSEARCH",
"position": 13
}
,
{
"id": "41014",
"name": "Wahoo 20 Trail",
"price": "649.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greenvisibility",
"list": "PRODUCTSEARCH",
"position": 14
}
,
{
"id": "36270",
"name": "Precaliber 20",
"price": "329.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 15
}
,
{
"id": "36268",
"name": "Precaliber 20 7-speed",
"price": "399.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"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");
}