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": "CATEGORY",
"position": 1
}
,
{
"id": "24583",
"name": "Trek eMTB Bosch Battery Cover",
"price": "113.0",
"brand": "Trek",
"category": "E-bike batteries & parts",
"variant": "red_black",
"list": "CATEGORY",
"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": "CATEGORY",
"position": 3
}
,
{
"id": "35612",
"name": "Bosch PowerPack 500 Battery",
"price": "1189.99",
"brand": "Bosch",
"category": "E-bike batteries & parts",
"variant": "black_greydark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35613",
"name": "Bosch PowerTube 500 Vertical Battery",
"price": "999.99",
"brand": "Bosch",
"category": "E-bike batteries & parts",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}