if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "40193",
"name": "Electra Cactus Flower Forward Twister Bike Bell",
"price": "16.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "redlight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "12621",
"name": "Electra Bottlecap Bike Bell",
"price": "9.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "14477",
"name": "Electra Color Ringer Bike Bell",
"price": "7.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "34399",
"name": "Electra Rosette Forward Twister Bike Bell",
"price": "6.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "34405",
"name": "Electra Solid Color Forward Twister Bike Bell",
"price": "6.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35933",
"name": "Electra Retro Stripe Forward Twister Bike Bell",
"price": "6.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "black_bronze",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35932",
"name": "Electra Peace Forward Twister Bike Bell",
"price": "6.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "black_white",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}