if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "34744",
"name": "Bontrager Rapid Pack Hydro",
"price": "",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "14798",
"name": "Bontrager Rapid Pack",
"price": "",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "greendark",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}