if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "33494",
"name": "District 2 Equipped Lowstep",
"price": "920.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "purpledark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33510",
"name": "Verve 2 Equipped Lowstep",
"price": "750.0",
"brand": "Trek",
"category": "Verve Equipped",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33509",
"name": "Verve 2 Equipped",
"price": "750.0",
"brand": "Trek",
"category": "Verve Equipped",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35104",
"name": "Dual Sport 3 Gen 4",
"price": "701.25",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "17476",
"name": "Kickster",
"price": "165.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}