Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "32233",
"name": "Cubierta de Almacenamiento de Tubo Inferior de Trek Domane SL",
"price": "69.99",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "red",
"list": "More Options",
"position": 1
}
,
{
"id": "32199",
"name": "Cubierta Frontal de Trek 2020 Domane SL",
"price": "41.99",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "white",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}