if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "37322",
"name": "Trek Good Ride Long Sleeve T-Shirt",
"price": "26.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "reddark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36290",
"name": "Trek Vintage Logo Long Sleeve Unisex T-shirt",
"price": "19.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40610",
"name": "Electra Ride Free Sweatshirt",
"price": "54.99",
"brand": "Electra",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}