if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "36068",
"name": "Trek Circuit LTD Long Sleeve Cycling Jersey",
"price": "47.99",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "reddark_bluedark",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "37097",
"name": "Trek Circuit Twin Gel Unisex Cycling Glove",
"price": "29.99",
"brand": "Trek",
"category": "Fingerless cycling gloves",
"variant": "yellowvisibility",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "37367",
"name": "Trek Circuit Women's Thermal Long Sleeve Cycling Jersey",
"price": "69.99",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "36069",
"name": "Trek Circuit Women's LTD Long Sleeve Cycling Jersey",
"price": "59.99",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "greendark_teal",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "37098",
"name": "Trek Circuit Full-Finger Twin Gel Unisex Cycling Glove",
"price": "34.99",
"brand": "Trek",
"category": "Full finger cycling gloves",
"variant": "yellowvisibility",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "30283",
"name": "Session C 29 Frameset",
"price": "4100.0",
"brand": "Trek",
"category": "Downhill mountain bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}