Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "35618",
"name": "Bosch Compact 2A Charger",
"price": "170.0",
"brand": "Bosch",
"category": "E-bike chargers & parts",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "35619",
"name": "Bosch Standard 4A Charger",
"price": "170.0",
"brand": "Bosch",
"category": "E-bike chargers & parts",
"variant": "black",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}