if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "42059",
"name": "Trek 2021 Allant+/Diamant Zouma+ Rear Cargo Rack",
"price": "27.49",
"brand": "Trek-Diamant",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35907",
"name": "Electra Slime Lifestyle Helmet",
"price": "23.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "black_green",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35906",
"name": "Electra Tutti Frutti Lifestyle Helmet",
"price": "23.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "pink",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "30684",
"name": "Electra Bar End Mirror",
"price": "16.99",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "27086",
"name": "Electra Linear Bike Bell",
"price": "11.89",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "bronze",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "44298",
"name": "Electra Loft/Loft Go! Rear Fender Plug",
"price": "3.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}