Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "40323",
"name": "Electra Heather Charcoal Pannier Bag",
"price": "",
"brand": "Electra",
"category": "Bike bags",
"variant": "black_grey",
"list": "More Options",
"position": 1
}
,
{
"id": "40324",
"name": "Electra Fern Pannier Bag",
"price": "",
"brand": "Electra",
"category": "Bike bags",
"variant": "black_grey",
"list": "More Options",
"position": 2
}
,
{
"id": "44316",
"name": "Trek Fetch+ 2 Rear Pannier Mounting Kit",
"price": "",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}