if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "40324",
"name": "Electra Fern Pannier Bag",
"price": "",
"brand": "Electra",
"category": "Bike bags",
"variant": "black_grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40323",
"name": "Electra Heather Charcoal Pannier Bag",
"price": "",
"brand": "Electra",
"category": "Bike bags",
"variant": "black_grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "44317",
"name": "Trek Fetch+ 2 Front Pannier Mounting Kit",
"price": "",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "44316",
"name": "Trek Fetch+ 2 Rear Pannier Mounting Kit",
"price": "",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}