if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "47413",
"name": "Fox Racing Defend Mountain Bike Pants",
"price": "209.95",
"brand": "Fox Racing",
"category": "Men's cycling tights & pants",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44249",
"name": "Fox Racing Ranger Pant",
"price": "164.95",
"brand": "Fox Racing",
"category": "Men's cycling tights & pants",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40404",
"name": "Fox Racing Flexair Mountain Bike Pant",
"price": "144.99",
"brand": "Fox Racing",
"category": "Men's cycling tights & pants",
"variant": "black_greydark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}