if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "41684",
"name": "Slash 9.8 GX AXS T-Type Gen 6",
"price": "6750.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35388",
"name": "Slash 9.8 XT Gen 5",
"price": "4500.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37058",
"name": "Slash 9.8 GX AXS Gen 5",
"price": "3875.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36730",
"name": "Slash 7 Gen 5",
"price": "2225.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}