if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "12598",
"name": "Electra Bicycle Cover",
"price": "49.99",
"brand": "Electra",
"category": "Bike storage",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40278",
"name": "Electra Classic Faux Leather Bike Carry Handle",
"price": "29.93",
"brand": "Electra",
"category": "Bike storage",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}