Prehľad
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "33835",
"name": "Ponožky Electra Surfbird",
"price": "15.29",
"brand": "Electra",
"category": "Cycling socks",
"variant": "blue_greenvisibility",
"list": "More Options",
"position": 1
}
,
{
"id": "33838",
"name": "Ponožky Electra Tie Dye",
"price": "15.29",
"brand": "Electra",
"category": "Cycling socks",
"variant": "purple",
"list": "More Options",
"position": 2
}
,
{
"id": "33836",
"name": "Ponožky Electra Burger",
"price": "15.29",
"brand": "Electra",
"category": "Cycling socks",
"variant": "tan_red",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}