if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "28080",
"name": "Townie 7D Step-Thru",
"price": "599.99",
"brand": "Electra",
"category": "Townie",
"variant": "orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35599",
"name": "Cruiser 7D Step-Thru",
"price": "499.99",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "orangelight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35597",
"name": "Cruiser 1 Step-Thru",
"price": "399.99",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "pinklight",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35210",
"name": "Shibori Cruiser Go!",
"price": "1299.99",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "blue_white",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35212",
"name": "Bali Cruiser Go!",
"price": "1299.99",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "tan",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35207",
"name": "Cruiser Go! Step-Thru",
"price": "1199.99",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "orangelight",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35601",
"name": "Cruiser 3i Step-Thru",
"price": "599.93",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "redlight",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}