Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "14110",
"name": "Trek Fuel EX 2017-2019 Aluminum Chainstay",
"price": "474.99",
"brand": "Trek",
"category": "Bike rear suspension",
"variant": "black_blue",
"list": "More Options",
"position": 1
}
,
{
"id": "29993",
"name": "Juego de Hardware Trasero de Puntal Trek Supercaliber 29",
"price": "27.99",
"brand": "Trek",
"category": "Bike rear suspension",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "30462",
"name": "Tuerca de tijera superior trasera Trek 2014-2017 Mino Link",
"price": "6.99",
"brand": "Trek",
"category": "Bike rear suspension",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "33107",
"name": "DropLock Remote de Bontrager",
"price": "167.99",
"brand": "Bontrager",
"category": "Bike seatposts & accessories",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "36075",
"name": "RockShox Deluxe Thru Shaft 230 x 57.5mm Shock",
"price": "512.49",
"brand": "RockShox",
"category": "Bike rear suspension",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}