if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "48906",
"name": "Rapha Merino Cycling Baselayer",
"price": "130.0",
"brand": "Rapha",
"category": "Men's cycling baselayers",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47300",
"name": "Rapha Lightweight Sleeveless Cycling Baselayer",
"price": "97.0",
"brand": "Rapha",
"category": "Men's cycling baselayers",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "22809",
"name": "Bontrager Mesh Women's Sleeveless Cycling Baselayer",
"price": "39.99",
"brand": "Bontrager",
"category": "Women's cycling baselayers",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "22807",
"name": "Bontrager Mesh Women's Short Sleeve Cycling Baselayer",
"price": "39.99",
"brand": "Bontrager",
"category": "Women's cycling baselayers",
"variant": "white",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}