Přehled
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CZK",
"impressions": [
{
"id": "40646",
"name": "Electra Triangle Frame Bag",
"price": "1199.0",
"brand": "Electra",
"category": "Bike bags",
"variant": "grey",
"list": "More Options",
"position": 1
}
,
{
"id": "35896",
"name": "Brašna na telefon Electra Ziggy",
"price": "879.0",
"brand": "Electra",
"category": "Bike bags",
"variant": "brown_blue",
"list": "More Options",
"position": 2
}
,
{
"id": "40317",
"name": "Brašna na telefon Electra Fern",
"price": "879.0",
"brand": "Electra",
"category": "Bike bags",
"variant": "greendark",
"list": "More Options",
"position": 3
}
,
{
"id": "33770",
"name": "Electra Leopard Phone Bag",
"price": "499.0",
"brand": "Electra",
"category": "Bike bags",
"variant": "white_purplelight",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}