if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "41474",
"name": "Promax Threadless Stem for 22.2mm Handlebar",
"price": "18.99",
"brand": "Lee Chi",
"category": "Bike stems & accessories",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "28355",
"name": "Park Tool AWS-10 Fold-Up Hex Wrench Set",
"price": "17.99",
"brand": "Park Tool",
"category": "Bike tools & maintenance",
"variant": "blue",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "27944",
"name": "Park Tool AWS-13 Micro Multi-Tool",
"price": "13.99",
"brand": "Park Tool",
"category": "Bike tools & maintenance",
"variant": "blue",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "45342",
"name": "Park Tool RR-12.2 Tape Measure",
"price": "11.99",
"brand": "Park Tool",
"category": "Bike tools & maintenance",
"variant": "blue",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "37555",
"name": "Electra Plasket 22.2mm Bracket",
"price": "6.99",
"brand": "Electra",
"category": "Bike baskets",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "27053",
"name": "SR Suntour QR-22 Skewer",
"price": "6.49",
"brand": "Bontrager",
"category": "Bike wheels",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}