if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "41014",
"name": "Wahoo 20 Trail",
"price": "849.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greenvisibility",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36268",
"name": "Precaliber 20 7-speed",
"price": "499.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36270",
"name": "Precaliber 20",
"price": "409.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36607",
"name": "Sprocket 1 20"",
"price": "519.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35411",
"name": "EBC 3000 Sprocket 20"",
"price": "489.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "greylight",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35410",
"name": "Cat's Meow Sprocket 20"",
"price": "489.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "white",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}