Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "48043",
"name": "Supercaliber SLR 9.9 con tecnología Flight Attendant Gen 2",
"price": "19999.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_grey",
"list": "More Options",
"position": 1
}
,
{
"id": "47319",
"name": "Supercaliber SLR 9.9 XX AXS Gen 2",
"price": "15499.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_grey",
"list": "More Options",
"position": 2
}
,
{
"id": "41728",
"name": "Supercaliber SLR 9.9 X0 AXS Gen 2",
"price": "14299.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black_grey",
"list": "More Options",
"position": 3
}
,
{
"id": "41720",
"name": "Supercaliber 9.8 GX AXS Gen 2",
"price": "9999.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "reddark",
"list": "More Options",
"position": 4
}
,
{
"id": "35151",
"name": "Supercaliber 9.6 Gen 1",
"price": "5399.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red_black",
"list": "More Options",
"position": 5
}
,
{
"id": "41670",
"name": "Supercaliber SL 9.6 Gen 2",
"price": "5399.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "blue",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}