if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "41417",
"name": "PEARL iZUMi Attack AmFIB Lite Jacket",
"price": "199.99",
"brand": "PEARL iZUMi",
"category": "Cycling jackets",
"variant": "greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41427",
"name": "PEARL iZUMi PRO Barrier Jacket",
"price": "199.99",
"brand": "PEARL iZUMi",
"category": "Cycling jackets",
"variant": "orange",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}