if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "32727",
"name": "Bontrager CR1632 Computer Battery",
"price": "",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "13376",
"name": "CR2032 Computer Battery 5-Pack",
"price": "",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "25400",
"name": "Bontrager 23AE Computer Battery",
"price": "",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "greylight",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}