if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "33697",
"name": "Electra Lifestyle Lux Solid Color Helmet",
"price": "49.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "white_greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "34331",
"name": "Electra Mountain Sky Lifestyle Lux Bike Helmet",
"price": "49.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "black_white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "21684",
"name": "Electra Lifestyle Lux Ace Bike Helmet",
"price": "49.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "34329",
"name": "Electra Honeycomb Lifestyle Lux Bike Helmet",
"price": "49.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "yellow",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "34330",
"name": "Electra Gnome Lifestyle Lux Bike Helmet",
"price": "49.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "21663",
"name": "Electra Commute Mips Bike Helmet",
"price": "39.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "purpledark",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}