if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "34759",
"name": "Trek Happy Bike T-shirt",
"price": "29.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37326",
"name": "Trek Feel Good T-Shirt",
"price": "26.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37324",
"name": "Trek Ride Club T-Shirt",
"price": "24.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36291",
"name": "Trek Original Women's T-shirt",
"price": "21.24",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "32582",
"name": "Trek Roadie T-Shirt",
"price": "20.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "white",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35007",
"name": "Santini Trek-Segafredo Men's Team T-Shirt",
"price": "6.0",
"brand": "Santini",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}