if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "35707",
"name": "Electra Ziggy Elastomer Saddle",
"price": "33.99",
"brand": "Electra",
"category": "Bike saddles",
"variant": "brown",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35904",
"name": "Electra Ziggy Lifestyle Helmet",
"price": "31.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "tan_blue",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35896",
"name": "Electra Ziggy Phone Bag",
"price": "27.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "brown_blue",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35898",
"name": "Electra Ziggy Saddle Bag",
"price": "19.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "brown_blue",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35892",
"name": "Electra Ziggy Handlebar Bag",
"price": "19.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "brown_blue",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35711",
"name": "Electra Ziggy Rubber Grips",
"price": "16.99",
"brand": "Electra",
"category": "Bike handlebar grips & tape",
"variant": "brown",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}