if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "34769",
"name": "Trek Boone Gen 1 Internal IsoSpeed Cover",
"price": "4.99",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "25625",
"name": "Trek Madone SLR IsoSpeed Hardware",
"price": "3.99",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "45092",
"name": "Trek IsoTongue Alloy M6 Washer",
"price": "3.49",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "34764",
"name": "Trek Boone IsoSpeed Bearing Seal Set",
"price": "1.5",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "38031",
"name": "Trek 2022 Speed Concept SLR Top Tube IsoSpeed Washer",
"price": "4.99",
"brand": "Trek-Diamant",
"category": "Bike frame parts",
"variant": "grey",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}