Prehľad
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "40646",
"name": "Electra Triangle Frame Bag",
"price": "47.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "grey",
"list": "More Options",
"position": 1
}
,
{
"id": "35897",
"name": "Taška Electra Miami s vreckom na telefón",
"price": "31.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "teal_pinkdark",
"list": "More Options",
"position": 2
}
,
{
"id": "35896",
"name": "Taška Electra Ziggy s vreckom na telefón",
"price": "31.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "brown_blue",
"list": "More Options",
"position": 3
}
,
{
"id": "40317",
"name": "Puzdro na telefón Electra Fern",
"price": "31.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "greendark",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}