if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "41839",
"name": "Electra Townie 7D Fender Hardware Set",
"price": "7.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "42250",
"name": "Electra PVC Light Wire Sleeve",
"price": "2.99",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}