if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "25431",
"name": "Electra 26" Cruiser 330 mm Rear Mudguard Stay & Toggle",
"price": "6.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44092",
"name": "Electra Loft Fork Crown Fender/Fork Shim",
"price": "4.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "44700",
"name": "Electra Townie Path Go! Fork/Fender Shim",
"price": "4.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "25430",
"name": "Electra 26" Cruiser 355 mm Front Mudguard Stay & Toggle",
"price": "4.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36964",
"name": "Electra Townie/Cruiser Go! Rear mudguard Plug",
"price": "3.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "42250",
"name": "Electra PVC Light Wire Sleeve",
"price": "3.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "44298",
"name": "Electra Loft/Loft Go! Rear Fender Plug",
"price": "3.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}