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": "36645",
"name": "Praxis T47 M30 Bottom Bracket Tool",
"price": "27.99",
"brand": "Praxis",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}