if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "37375",
"name": "Trek Voda 21oz Water Bottle",
"price": "6.99",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "grey_white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "27290",
"name": "Bontrager TLR Tire Sealant",
"price": "4.99",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}