if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "41661",
"name": "Powerfly FS 9 Equipped Gen 3",
"price": "8149.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36998",
"name": "Powerfly FS 4 Gen 3.",
"price": "6149.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32759",
"name": "Powerfly FS 4 2e gén.",
"price": "4299.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37043",
"name": "Powerfly 4 Gen 4.",
"price": "3099.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "blue_black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}