if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "47937",
"name": "Townie Go! 7D EQ Step-Over",
"price": "1799.99",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47938",
"name": "Townie Go! 7D EQ Step-Thru",
"price": "1799.99",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35273",
"name": "Townie Go! 7D Step-Thru",
"price": "1399.98",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35272",
"name": "Townie Go! 7D Step-Over",
"price": "1399.98",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}