Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "27159",
"name": "Trek eBike Rotor Mount Sensor Magnet",
"price": "13.99",
"brand": "Trek",
"category": "E-bike motor parts",
"variant": "black",
"list": "More Options",
"position": 1
}
]
}
});
} else {
console.log("dataLayer");
}