Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "32476",
"name": "Juego de herramientas para revestir carbono Trek BB90",
"price": "249.99",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "37111",
"name": "Torquímetro Preconfigurado de 6.8Nm de Bontrager",
"price": "29.99",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "08370",
"name": "Torquímetro Preconfigurado de 5Nm de Bontrager",
"price": "26.24",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "21964",
"name": "Park Tool TWS-1 Torx Wrench Set",
"price": "29.99",
"brand": "Park Tool",
"category": "Bike tools & maintenance",
"variant": "green_black",
"list": "More Options",
"position": 4
}
,
{
"id": "32112",
"name": "Praxis T47 24mm Bottom Bracket Tool",
"price": "20.99",
"brand": "Praxis",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}