if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "34245",
"name": "Electra EBC 3000 Lifestyle Bike Helmet",
"price": "",
"brand": "Electra",
"category": "Bike helmets",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33613",
"name": "Electra EBC 3000 Handlebar Bag",
"price": "",
"brand": "Electra",
"category": "Bike bags",
"variant": "greylight_white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34243",
"name": "Electra EBC 3000 Lifestyle Bike Helmet",
"price": "",
"brand": "Electra",
"category": "Bike helmets",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}