if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "37304",
"name": "Domane RSL Frame Set Gen 4",
"price": "4900.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33044",
"name": "Madone SLR Gen 6 Frame Set",
"price": "4700.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey_reddark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35084",
"name": "Madone SL Disc Gen 6 Frame Set",
"price": "4350.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "29529",
"name": "Madone SL Frame Set",
"price": "4000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "33101",
"name": "Domane SLR Disc Frameset Gen 3",
"price": "3500.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35073",
"name": "Domane SL Disc Frame Set Gen 3",
"price": "2450.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "23644",
"name": "Émonda ALR Disc Frameset",
"price": "1150.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_orangelight",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "32692",
"name": "Checkpoint ALR Frame Set",
"price": "1000.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "tealdark",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "34200",
"name": "520 Disc Frame Set",
"price": "615.0",
"brand": "Trek",
"category": "520",
"variant": "red",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}