if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "42146",
"name": "RideWrap Matte Covered Frame Protection Kit designed for 2022 Trek Rail",
"price": "90.0",
"brand": "RideWrap",
"category": "Bike frame protection",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37437",
"name": "RideWrap Matte Covered Frame Protection Kit designed to fit 2020-2022 Trek Supercaliber",
"price": "53.99",
"brand": "RideWrap",
"category": "Bike frame protection",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37438",
"name": "RideWrap Gloss Covered Frame Protection Kit designed to fit 2020-2021 Trek Top Fuel",
"price": "26.99",
"brand": "RideWrap",
"category": "Bike frame protection",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "28432",
"name": "Fisher Superfly 29 Downtube Guard",
"price": "12.99",
"brand": "Gary Fisher",
"category": "Bike frame protection",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "28420",
"name": "Fisher Superfly 29 Chainstay Guard",
"price": "12.99",
"brand": "Gary Fisher",
"category": "Bike frame protection",
"variant": "grey",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}