if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "36036",
"name": "Trek RSL Knit Road Cycling Shoe",
"price": "664.99",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "white_greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35040",
"name": "Trek RSL Road Cycling Shoe",
"price": "599.99",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34133",
"name": "Trek Velocis Road Cycling Shoe",
"price": "334.99",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "45274",
"name": "Trek Circuit Road Cycling Shoe",
"price": "189.99",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "white",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35041",
"name": "Trek RSL Mountain Bike Shoe",
"price": "599.99",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "white",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "45271",
"name": "Trek Cambion Mountain Bike Shoe",
"price": "349.99",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "45272",
"name": "Trek Foray Mountain Bike Shoe",
"price": "204.99",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "white",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "45275",
"name": "Trek Circuit Wide Road Cycling Shoe",
"price": "189.99",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}