Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "33140",
"name": "Émonda SLR 9 AXS",
"price": "292999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "More Options",
"position": 1
}
,
{
"id": "35022",
"name": "Émonda SLR 6 AXS",
"price": "182999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "More Options",
"position": 2
}
,
{
"id": "35487",
"name": "Émonda SLR 7",
"price": "176999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "37314",
"name": "Émonda SLR 6",
"price": "163999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "More Options",
"position": 4
}
,
{
"id": "33139",
"name": "Émonda SLR 7 AXS",
"price": "224999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}