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