if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "41550",
"name": "Fuel EXe 8 GX AXS T-Type",
"price": "7499.98",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "tealdark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41554",
"name": "Fuel EXe 8 XT",
"price": "7199.98",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "tan",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41476",
"name": "Fuel EXe 5",
"price": "5999.98",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}