Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "32003",
"name": "Praxis M30 T47 Inboard Bottom Bracket",
"price": "69.99",
"brand": "Trek",
"category": "Bike bottom brackets",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "26057",
"name": "Juego de ejes de centro de acero Trek Integrated Shimano BB90/BB95",
"price": "49.99",
"brand": "Trek",
"category": "Bike bottom brackets",
"variant": "grey",
"list": "More Options",
"position": 2
}
,
{
"id": "26048",
"name": "Trek Integrated BB90 Shimano V2 Oversized Bottom Bracket Bearing",
"price": "27.99",
"brand": "Trek",
"category": "Bearings",
"variant": "grey",
"list": "More Options",
"position": 3
}
,
{
"id": "32278",
"name": "Trek Emonda ALR Bottom Bracket Cable Guide",
"price": "6.99",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "32283",
"name": "Guía de cable de eje de centro de ranura abierta de Trek",
"price": "6.99",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "29501",
"name": "Trek 2019 Marlin Bottom Bracket Cable Guide",
"price": "5.59",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}