if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "32279",
"name": "Trek Madone 9 Series Open Groove Bottom Bracket Cable Guide",
"price": "3.99",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "42042",
"name": "Trek 2023 Madone SLR Gen 7 Integrated Barstem Bearing Top Cap",
"price": "5.99",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black_greydark",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "32593",
"name": "Trek Blendr to BarStem Mounting Bolt",
"price": "2.99",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "46175",
"name": "Trek RSL Aero Water Bottle and Cage",
"price": "89.99",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "white_grey",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "41599",
"name": "Bontrager RSL Aero Road Handlebar",
"price": "399.99",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black_grey",
"list": "PRODUCTSEARCH",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}