if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "40400",
"name": "Fox Racing Ranger Youth Mountain Bike Jersey",
"price": "39.99",
"brand": "Fox Racing",
"category": "Kids' bike apparel",
"variant": "orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40401",
"name": "Fox Racing Ranger Drirelease® Youth Mountain Bike Jersey",
"price": "29.99",
"brand": "Fox Racing",
"category": "Kids' bike apparel",
"variant": "greenlight_orange",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}