Prehľad
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "40277",
"name": "Electra Classic Faux Leather Tool Bag",
"price": "55.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "33772",
"name": "Tmavosivá taška Electra Reflective pod sedlo",
"price": "27.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "reflective",
"list": "More Options",
"position": 2
}
,
{
"id": "35899",
"name": "Taška Electra Miami pod sedlo",
"price": "23.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "teal_pinkdark",
"list": "More Options",
"position": 3
}
,
{
"id": "40316",
"name": "Taška Electra Fern pod sedlo",
"price": "23.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "greendark",
"list": "More Options",
"position": 4
}
,
{
"id": "35898",
"name": "Taška Electra Ziggy pod sedlo",
"price": "23.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "brown_blue",
"list": "More Options",
"position": 5
}
,
{
"id": "33775",
"name": "Tmavosivá taška Electra Heather pod sedlo",
"price": "23.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "greydark",
"list": "More Options",
"position": 6
}
,
{
"id": "33774",
"name": "Electra Leopard Saddle Bag",
"price": "15.0",
"brand": "Electra",
"category": "Bike bags",
"variant": "white_purplelight",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}