Overview
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": "More Options",
"position": 1
}
,
{
"id": "37326",
"name": "Trek Feel Good T-Shirt",
"price": "26.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "More Options",
"position": 2
}
,
{
"id": "37324",
"name": "Trek Ride Club T-Shirt",
"price": "24.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "32582",
"name": "Trek Roadie T-Shirt",
"price": "20.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "white",
"list": "More Options",
"position": 4
}
,
{
"id": "35007",
"name": "Santini Trek-Segafredo Men's Team T-Shirt",
"price": "6.0",
"brand": "Santini",
"category": "T-Shirts",
"variant": "bluedark",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}