if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "34398",
"name": "Electra Offshore Forward Twister Bike Bell",
"price": "4.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "white_teal",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "34483",
"name": "Electra Gnome Ringer Bike Bell",
"price": "4.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34405",
"name": "Electra Solid Colour Twister Bike Bell",
"price": "3.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}