Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "30970",
"name": "Trek 2020-2021 Rail 29 Carbon Paint Match Battery Cover",
"price": "139.99",
"brand": "Trek",
"category": "E-bike batteries & parts",
"variant": "greendark_black",
"list": "More Options",
"position": 1
}
,
{
"id": "24583",
"name": "Trek eMTB Bosch Battery Cover",
"price": "113.0",
"brand": "Trek",
"category": "E-bike batteries & parts",
"variant": "red_black",
"list": "More Options",
"position": 2
}
,
{
"id": "31341",
"name": "Guía de Cable/Sujetador de la Batería del Tubo Inferior Interno de Trek Domane 2020",
"price": "20.99",
"brand": "Trek",
"category": "E-bike batteries & parts",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "35612",
"name": "Bosch PowerPack 500 Battery",
"price": "1189.99",
"brand": "Bosch",
"category": "E-bike batteries & parts",
"variant": "black_greydark",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}