if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "57020",
"name": "Trek Monochromatic T-Shirt",
"price": "24.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "49691",
"name": "Trek Right Stacked Unisex Hoodie",
"price": "69.99",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "greenlight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "49118",
"name": "Trek Left Stacked Unisex Hoodie",
"price": "69.99",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "57023",
"name": "Trek Black Logo Hat",
"price": "29.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "black_white",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37324",
"name": "Trek Ride Club T-Shirt",
"price": "19.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}