Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "30260",
"name": "Electra City Domed Ringer Bike Bell",
"price": "22.39",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "greylight",
"list": "More Options",
"position": 1
}
,
{
"id": "14518",
"name": "Electra Emoji Domed Ringer Bike Bell",
"price": "22.39",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "yellow",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}