Panoramica
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "33837",
"name": "Electra Scales Socks",
"price": "17.99",
"brand": "Electra",
"category": "Cycling socks",
"variant": "blue_white",
"list": "More Options",
"position": 1
}
,
{
"id": "33836",
"name": "Calze Electra Burger",
"price": "15.29",
"brand": "Electra",
"category": "Cycling socks",
"variant": "tan_red",
"list": "More Options",
"position": 2
}
,
{
"id": "33838",
"name": "Calze Electra Tie Dye",
"price": "15.29",
"brand": "Electra",
"category": "Cycling socks",
"variant": "purple",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}