if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "40745",
"name": "PEARL iZUMi Interval Cycling Jersey",
"price": "124.99",
"brand": "PEARL iZUMi",
"category": "Mountain bike jerseys",
"variant": "orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "80084",
"name": "PEARL iZUMi Quest Cycling Jersey",
"price": "84.99",
"brand": "PEARL iZUMi",
"category": "Road bike jerseys",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47299",
"name": "Rapha Brevet Cycling Jersey",
"price": "209.93",
"brand": "Rapha",
"category": "Road bike jerseys",
"variant": "bluedark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}