if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "16717",
"name": "Loft 7D Step-Over",
"price": "499.99",
"brand": "Electra",
"category": "Loft",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "16810",
"name": "Loft 7D Step-Thru",
"price": "499.99",
"brand": "Electra",
"category": "Loft",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47937",
"name": "Townie Go! 7D EQ Step-Over",
"price": "1799.99",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "47938",
"name": "Townie Go! 7D EQ Step-Thru",
"price": "1799.99",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "26947",
"name": "Townie Path Go! 10D EQ Step-Over",
"price": "3299.99",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}