Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "17003",
"name": "Loft 7i Ladies'",
"price": "",
"brand": "Electra",
"category": "Loft",
"variant": "green",
"list": "More Options",
"position": 1
}
,
{
"id": "24532",
"name": "Loft 7i EQ Step-Over",
"price": "",
"brand": "Electra",
"category": "Loft",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "24531",
"name": "Loft 7D EQ Step-Thru",
"price": "",
"brand": "Electra",
"category": "Loft",
"variant": "white",
"list": "More Options",
"position": 3
}
,
{
"id": "16717",
"name": "Loft 7D Men's",
"price": "",
"brand": "Electra",
"category": "Loft",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "24533",
"name": "Loft 7i EQ Step-Thru",
"price": "",
"brand": "Electra",
"category": "Loft",
"variant": "green",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}