Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "27635",
"name": "Juego de portaejes Trek CX Stranglehold",
"price": "97.99",
"brand": "Trek",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "29541",
"name": "Porta eje desmontable Trek ABP Convert",
"price": "30.0",
"brand": "Trek",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "27646",
"name": "Porta eje desmontable de cambio trasero Trek Madone Gen3",
"price": "25.19",
"brand": "Trek",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "24268",
"name": "Trek Road Alloy 135mm Derailleur Hanger",
"price": "25.0",
"brand": "Trek",
"category": "Bike hangers & dropouts",
"variant": "greylight",
"list": "More Options",
"position": 4
}
,
{
"id": "24280",
"name": "Portaeje desmontable de MTB/híbrida de Trek",
"price": "20.99",
"brand": "Trek",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "31750",
"name": "Perno de cabezal avellanado de Trek Road M3 x 0.5 x 7mm",
"price": "4.19",
"brand": "Trek",
"category": "Bike hangers & dropouts",
"variant": "greylight",
"list": "More Options",
"position": 6
}
,
{
"id": "31748",
"name": "Perno avellanado de cabezal Trek MTB 2010 serie 8",
"price": "4.19",
"brand": "Trek",
"category": "Bike hangers & dropouts",
"variant": "greylight",
"list": "More Options",
"position": 7
}
,
{
"id": "31751",
"name": "Perno de cabezal avellanado de Trek Road M3 x 0.5 x 12mm",
"price": "4.19",
"brand": "Trek",
"category": "Bike hangers & dropouts",
"variant": "grey",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}