if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "35070",
"name": "Top Fuel 7 Gen 3",
"price": "2699.93",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "35118",
"name": "Roscoe 9",
"price": "1999.93",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "tan_greendark",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "35112",
"name": "X-Caliber 9",
"price": "1299.93",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "blue",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "35030",
"name": "Allant+ 9.9S",
"price": "4499.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey_black",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "37069",
"name": "Powerfly FS 9 Equipped Gen 3",
"price": "6499.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_black",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "36792",
"name": "Rail 7 Gen 3",
"price": "4999.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "purpledark",
"list": "PRODUCTSEARCH",
"position": 6
}
,
{
"id": "37026",
"name": "Rail 9.7 Gen 4",
"price": "6299.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "PRODUCTSEARCH",
"position": 7
}
,
{
"id": "41615",
"name": "Procaliber 6",
"price": "1699.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 8
}
,
{
"id": "36365",
"name": "Fuel EXe 9.7",
"price": "6599.98",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "PRODUCTSEARCH",
"position": 9
}
,
{
"id": "35063",
"name": "Remedy 8",
"price": "2699.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "grey",
"list": "PRODUCTSEARCH",
"position": 10
}
,
{
"id": "35032",
"name": "Rail 5 Gen 2",
"price": "3499.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_teal",
"list": "PRODUCTSEARCH",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}