Übersicht
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "41738",
"name": "Trek Windshell Fahrradbalaklava",
"price": "27.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "41737",
"name": "Trek Windshell Fahrradmütze",
"price": "22.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "41739",
"name": "Trek Thermal Neck Gaiter",
"price": "22.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "46737",
"name": "Santini Lidl-Trek Team Replica Fahrradkappe",
"price": "18.0",
"brand": "Santini",
"category": "Cycling caps & headwear",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 4
}
,
{
"id": "41735",
"name": "Trek Thermal Fahrradstirnband",
"price": "17.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "46743",
"name": "Santini Lidl-Trek Team Schlauchtuch",
"price": "13.0",
"brand": "Santini",
"category": "Cycling caps & headwear",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 6
}
,
{
"id": "22822",
"name": "Bontrager Classic Radmütze",
"price": "13.0",
"brand": "Bontrager",
"category": "Cycling caps & headwear",
"variant": "pinkdark_black",
"list": "More Options",
"position": 7
}
,
{
"id": "27190",
"name": "Bontrager Adventure Radmütze",
"price": "9.0",
"brand": "Bontrager",
"category": "Cycling caps & headwear",
"variant": "grey",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}