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