if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "41669",
"name": "Slash 9 GX AXS T-Type Gen 6",
"price": "5175.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "41668",
"name": "Slash 8 Gen 6",
"price": "4250.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "36990",
"name": "Rail 5 625W Gen 3",
"price": "4075.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "blue",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "41704",
"name": "Powerfly Sport 5 Equipped Gen 4",
"price": "3825.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "white_greylight",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "37302",
"name": "Domane SL Gen 4 Frame Set",
"price": "2900.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "41579",
"name": "Rail 9.9 X0 AXS T-Type Gen 4",
"price": "10625.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "PRODUCTSEARCH",
"position": 6
}
,
{
"id": "36992",
"name": "Rail 9 Gen 3",
"price": "6950.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 7
}
,
{
"id": "36991",
"name": "Rail 7 Gen 3",
"price": "4400.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "purpledark",
"list": "PRODUCTSEARCH",
"position": 8
}
,
{
"id": "35403",
"name": "Powerfly 7 Gen 3",
"price": "4230.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_greydark",
"list": "PRODUCTSEARCH",
"position": 9
}
,
{
"id": "37044",
"name": "Powerfly 5 Gen 4",
"price": "3975.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "teal_greendark",
"list": "PRODUCTSEARCH",
"position": 10
}
,
{
"id": "40673",
"name": "Powerfly FS 4 Gen 3",
"price": "3575.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "teal_greendark",
"list": "PRODUCTSEARCH",
"position": 11
}
,
{
"id": "35402",
"name": "Powerfly 5 Gen 3",
"price": "3555.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "white_greydark",
"list": "PRODUCTSEARCH",
"position": 12
}
,
{
"id": "37045",
"name": "Powerfly 7 Gen 4",
"price": "3550.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "tan_black",
"list": "PRODUCTSEARCH",
"position": 13
}
,
{
"id": "41662",
"name": "Rail 9.8 GX AXS T-Type Gen 4",
"price": "7825.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "PRODUCTSEARCH",
"position": 14
}
,
{
"id": "37008",
"name": "Powerfly FS 9 Equipped Gen 3",
"price": "5550.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_black",
"list": "PRODUCTSEARCH",
"position": 15
}
,
{
"id": "37015",
"name": "Rail 9.7 Gen 4",
"price": "5000.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "PRODUCTSEARCH",
"position": 16
}
,
{
"id": "41036",
"name": "Powerfly 4 625W Gen 4",
"price": "3700.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greenlight_greydark",
"list": "PRODUCTSEARCH",
"position": 17
}
,
{
"id": "41679",
"name": "Rail 9.5 Gen 4",
"price": "4475.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greendark",
"list": "PRODUCTSEARCH",
"position": 18
}
]
}
});
} else {
console.log("dataLayer");
}