if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "35568",
"name": "Selle Royal Looking Basic Moderate Men's Saddle",
"price": "47.99",
"brand": "Selle Royal",
"category": "Bike saddles",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "14002",
"name": "Electra Cruiser Bike Saddle w/Elastomers",
"price": "44.99",
"brand": "Electra",
"category": "Bike saddles",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "12682",
"name": "Electra Heartchya Cruiser Bike Saddle",
"price": "33.99",
"brand": "Electra",
"category": "Bike saddles",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "32678",
"name": "Electra Water Lily Cruiser Bike Saddle",
"price": "33.99",
"brand": "Electra",
"category": "Bike saddles",
"variant": "white_yellowvisibility",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "22353",
"name": "Electra Loft Vintage Brown Bike Saddle",
"price": "29.99",
"brand": "Electra",
"category": "Bike saddles",
"variant": "brown",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}