Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "23015",
"name": "Miranda Crankarm Bolts",
"price": "",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "36412",
"name": "Trek 2022 Session 29 Idler Pulley 3.5mm Spacer",
"price": "",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "grey",
"list": "More Options",
"position": 2
}
,
{
"id": "36411",
"name": "Trek 2022 Session 29 Idler Pulley 4.5mm Black Spacer",
"price": "",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "45279",
"name": "Trek Domane+ SLR 2x Crank Spider Spacer",
"price": "",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "grey",
"list": "More Options",
"position": 4
}
,
{
"id": "44990",
"name": "FSA ML558 Bosch Gen 3 ISIS Crank Arm Bolts - Set of 2",
"price": "",
"brand": "FSA",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}