if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "36823",
"name": "Dual Sport 2 5ème génération",
"price": "799.93",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40826",
"name": "Dual Sport 3 5e gén.",
"price": "1239.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40824",
"name": "Dual Sport 2 5e gén.",
"price": "1059.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36824",
"name": "Dual Sport 1 5ème génération",
"price": "699.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}