if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "33074",
"name": "Fuel EX 9.8 GX Gen 5",
"price": "4387.5",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33000",
"name": "Fuel EX 8 Gen 5",
"price": "3450.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "reddark_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32884",
"name": "Fuel EX 7 Gen 5",
"price": "2212.5",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black_red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "33073",
"name": "Fuel EX 5 Gen 5",
"price": "1750.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "grey_orangelight",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "33359",
"name": "Fuel EX C Frame Set Gen 5",
"price": "3600.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40626",
"name": "Fuel EX C Frame Set",
"price": "3450.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 6
}
,
{
"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": 7
}
,
{
"id": "30253",
"name": "Fuel EX AL Frame Set",
"price": "1600.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black_red",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}