if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "12861",
"name": "Electra Amsterdam Royal 8i Front Bike Light",
"price": "29.99",
"brand": "Electra",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "31091",
"name": "Spanninga Axendo XE 80 E-bike Front Bike Light",
"price": "29.99",
"brand": "Electra",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36220",
"name": "Spanninga Kendo XE 6-36VDC E-bike Front Bike Light",
"price": "29.99",
"brand": "Spanninga",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "25644",
"name": "Spanninga Kendo XD Dynamo Front Light",
"price": "22.49",
"brand": "Spanninga",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "25645",
"name": "Electra Swingo XE E-bike Front Bike Light",
"price": "19.99",
"brand": "Electra",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}