if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "47147",
"name": "Trek Adventure Frame Bag",
"price": "174.99",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "47148",
"name": "Trek Adventure Triangle Bag",
"price": "114.99",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "47358",
"name": "Trek Adventure Top Tube Bag",
"price": "69.99",
"brand": "Trek",
"category": "Bike bags",
"variant": "black_greylight",
"list": "PRODUCTSEARCH",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}