if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "40626",
"name": "Fuel EX C Frame Set",
"price": "3450.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33066",
"name": "Fuel EX AL Frame Set Gen 5",
"price": "1975.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "reddark_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "30253",
"name": "Fuel EX AL Frame Set",
"price": "1600.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black_red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "16705",
"name": "Fuel EX 27.5 Alloy Frame Set",
"price": "1300.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}