if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "36036",
"name": "Trek RSL Knit Road Cycling Shoe",
"price": "499.99",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "white_greylight",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "45274",
"name": "Trek Circuit Road Cycling Shoe",
"price": "139.99",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "white",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "45275",
"name": "Trek Circuit Wide Road Cycling Shoe",
"price": "139.99",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "34133",
"name": "Trek Velocis Road Cycling Shoe",
"price": "249.99",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "45271",
"name": "Trek Cambion Mountain Bike Shoe",
"price": "259.99",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "45272",
"name": "Trek Foray Mountain Bike Shoe",
"price": "149.99",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "white",
"list": "PRODUCTSEARCH",
"position": 6
}
,
{
"id": "35040",
"name": "Trek RSL Road Cycling Shoe",
"price": "449.99",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "white",
"list": "PRODUCTSEARCH",
"position": 7
}
,
{
"id": "45273",
"name": "Trek Foray Wide Mountain Bike Shoe",
"price": "149.99",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 8
}
,
{
"id": "35041",
"name": "Trek RSL Mountain Bike Shoe",
"price": "449.99",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "white",
"list": "PRODUCTSEARCH",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}