if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "37084",
"name": "Short VTT Trek Evoke",
"price": "79.99",
"brand": "Trek",
"category": "Mountain bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37090",
"name": "Sous-short Trek Troslo",
"price": "31.99",
"brand": "Trek",
"category": "Mountain bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}