Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "37537",
"name": "Bosch Standard Charger 4A 220-240v",
"price": "190.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");
}