if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "47132",
"name": "Domane SL 7 Gen 4",
"price": "6100.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47131",
"name": "Domane SL 6 Gen 4",
"price": "4175.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41348",
"name": "Domane SL 5 Gen 4",
"price": "3000.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greylight",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37417",
"name": "Madone SLR 6 AXS Gen 7",
"price": "8250.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_reddark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37346",
"name": "Domane SLR 6 AXS Gen 4",
"price": "7400.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36152",
"name": "Domane SL 6 AXS Gen 4",
"price": "4625.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}