if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "33770",
"name": "Electra Leopard Phone Bag",
"price": "31.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "white_purplelight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33774",
"name": "Electra Leopard Saddle Bag",
"price": "25.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "white_purplelight",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}