if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "33770",
"name": "Electra Leopard Phone Bag",
"price": "14.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "white_purplelight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33612",
"name": "Electra Leopard Handlebar Bag with Lid",
"price": "11.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "white_purplelight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33774",
"name": "Electra Leopard Saddle Bag",
"price": "9.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "white_purplelight",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}