Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "33380",
"name": "Trek Domane+ Front Bike Light Assembly",
"price": "5452.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "33675",
"name": "Trek Domane+ Rear Bike Light Assembly",
"price": "2726.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "27116",
"name": "Bontrager Lync Flare Rear Wire Light Harness",
"price": "106.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black_red",
"list": "More Options",
"position": 3
}
,
{
"id": "37981",
"name": "Bontrager Lights USB Type-C Charge Cable",
"price": "146.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "25371",
"name": "Cable de carga rápida USB Bontrager",
"price": "106.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "grey",
"list": "More Options",
"position": 5
}
,
{
"id": "31843",
"name": "Bontrager 2020 E-bike Forklight Parts",
"price": "46.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black_greydark",
"list": "More Options",
"position": 6
}
,
{
"id": "32174",
"name": "Supernova M99 Y Cable Magura MTe Rear Bike Light Part",
"price": "1363.0",
"brand": "SUPERNOVA",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "21756",
"name": "Supernova Light Parts",
"price": "1044.0",
"brand": "SUPERNOVA",
"category": "Bike lights",
"variant": "white",
"list": "More Options",
"position": 8
}
,
{
"id": "41207",
"name": "Supernova Bosch Smart System/BES3 Front Light Connection Cable",
"price": "974.0",
"brand": "SUPERNOVA",
"category": "E-bike chargers & parts",
"variant": "black",
"list": "More Options",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}