if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "40324",
"name": "Electra Fern Pannier Bag",
"price": "119.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "black_grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40322",
"name": "Electra Fern Rear Rack Trunk Bag",
"price": "109.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "greendark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40317",
"name": "Electra Fern Phone Bag",
"price": "44.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "greendark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40316",
"name": "Electra Fern Saddle Bag",
"price": "34.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "greendark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40184",
"name": "Electra Fern Ding Dong Bike Bell",
"price": "21.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "greendark",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}