if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "41149",
"name": "Short VTT Trek Rhythm",
"price": "129.99",
"brand": "Trek",
"category": "Mountain bike shorts & bib shorts",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "41150",
"name": "Short de VTT pour femmes Trek Rhythm",
"price": "129.99",
"brand": "Trek",
"category": "Mountain bike shorts & bib shorts",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}