Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "47286",
"name": "Fuel EXe 9.9 XX AXS T-Type",
"price": "344999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_white",
"list": "More Options",
"position": 1
}
,
{
"id": "47285",
"name": "Fuel EXe 9.9 X0 AXS T-Type",
"price": "319999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_white",
"list": "More Options",
"position": 2
}
,
{
"id": "41571",
"name": "Fuel EXe 9.8",
"price": "242999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "41658",
"name": "Fuel EXe 9.9 XX AXS T-Type",
"price": "344999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "More Options",
"position": 4
}
,
{
"id": "41652",
"name": "Fuel EXe 9.9 X0 AXS T-Type",
"price": "319999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "More Options",
"position": 5
}
,
{
"id": "36371",
"name": "Fuel EXe 9.9 XTR",
"price": "259999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "blue",
"list": "More Options",
"position": 6
}
,
{
"id": "36373",
"name": "Fuel EXe 9.9 XX1 AXS",
"price": "314999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "blue",
"list": "More Options",
"position": 7
}
,
{
"id": "36375",
"name": "Fuel EXe 9.8",
"price": "209999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "yellow",
"list": "More Options",
"position": 8
}
,
{
"id": "36365",
"name": "Fuel EXe 9.7",
"price": "131999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "blue",
"list": "More Options",
"position": 9
}
,
{
"id": "36374",
"name": "Fuel EXe 9.5",
"price": "118199.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "More Options",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}