if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "32584",
"name": "Trek 1976 Sweatshirt",
"price": "32.99",
"brand": "Trek",
"category": "Casual cycling wear",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37331",
"name": "Trek Bike Love Youth Hoodie",
"price": "24.99",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32806",
"name": "Santini Trek-Segafredo Team Lifestyle Hoodie",
"price": "189.99",
"brand": "Santini",
"category": "Trek-Segafredo team apparel",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "22162",
"name": "Bontrager Evoke Mountain Bike Hoodie",
"price": "109.99",
"brand": "Bontrager",
"category": "Casual sweatshirts & hoodies",
"variant": "greydark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40610",
"name": "Electra Ride Free Sweatshirt",
"price": "54.99",
"brand": "Electra",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}