if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "34872",
"name": "Vale Go! 9D EQ S",
"price": "3299.93",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "tan",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "34871",
"name": "Vale Go! 9D EQ",
"price": "3099.93",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "tan",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}