if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "41354",
"name": "Émonda SL 7",
"price": "7499.97",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41352",
"name": "Émonda SL 6",
"price": "4999.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32688",
"name": "Émonda SL Disc Frameset",
"price": "2799.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35029",
"name": "Émonda SL 6 AXS",
"price": "5399.93",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36977",
"name": "Émonda SL 6 Pro Di2",
"price": "4799.93",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36974",
"name": "Émonda SL 5",
"price": "3149.93",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}