Přehled
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CZK",
"impressions": [
{
"id": "37594",
"name": "Představec s perkem na dětská kola Electra",
"price": "520.0",
"brand": "Electra",
"category": "Bike stems & accessories",
"variant": "greylight",
"list": "More Options",
"position": 1
}
,
{
"id": "12708",
"name": "Electra Cruiser Alloy Stems",
"price": "300.0",
"brand": "Electra",
"category": "Bike stems & accessories",
"variant": "greylight",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}