if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "37018",
"name": "Farley 5",
"price": "1850.0",
"brand": "Trek",
"category": "Fat bikes",
"variant": "tealdark_greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37020",
"name": "Farley 9.6",
"price": "3200.0",
"brand": "Trek",
"category": "Fat bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40735",
"name": "Farley AL Frameset",
"price": "1400.0",
"brand": "Trek",
"category": "Fat bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "24999",
"name": "Farley EX Frameset",
"price": "2800.0",
"brand": "Trek",
"category": "Fat bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "33744",
"name": "Farley AL Frameset",
"price": "1150.0",
"brand": "Trek",
"category": "Fat bikes",
"variant": "bluedark_tealdark",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}