if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "36846",
"name": "Precaliber 24 8-speed Suspension",
"price": "619.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41013",
"name": "Wahoo 24 Trail",
"price": "899.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "green",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40928",
"name": "Wahoo 24 Path",
"price": "699.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36965",
"name": "Precaliber 24 8-speed",
"price": "529.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greylight",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "28592",
"name": "Precaliber 24 8-speed Suspension",
"price": "579.93",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "white",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "28128",
"name": "Precaliber 24 8-speed",
"price": "449.93",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pinkdark",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}